title: Delphi-7: Convert yyyymmdd formatted string(format without a separator) to DateTime object
body: <p>I'm using <strong>Delphi7</strong>.</p>
  
  <p>I have date format set to <strong>yyyymmdd</strong> (can take any date format without separator). When I'm trying <code>StrToDate('20170901')</code> it is throwing error.</p>
  
  <p>I want to support all the valid date formats (can be used by different clients in different zones.)</p>
  
  <p>I have tried with <code>VarToDateTime</code> but it is also not working.</p>
  
  <p>If same issue will be there for DateToStr() also, please guide me through that too.</p>