title: In Delphi is there a function to convert XML date and time to TDateTime
body: <p>XML date and time are in the format </p>
  
  <p>'-'? yyyy '-' mm '-' dd 'T' hh ':' mm ':' ss ('.' s+)? (zzzzzz)?</p>
  
  <p><strong>were</strong> </p>
  
  <p>•'-'? yyyy is a four-or-more digit optionally negative-signed numeral that represents the year; if more than four digits, leading zeros are prohibited, and '0000' is prohibited</p>
  
  <p>•the remaining '-'s are separators between parts of the date portion;</p>
  
  <p>•the first mm is a two-digit numeral that represents the month;</p>
  
  <p>•dd is a two-digit numeral that represents the day;</p>
  
  <p>•'T' is a separator indicating that time-of-day follows;</p>
  
  <p>•hh is a two-digit numeral that represents the hour; '24' is permitted if the minutes and seconds represented are zero, and the dateTime value so represented is the first instant of the following day (the hour property of a dateTime object in the ·value space· cannot have a value greater than 23);</p>
  
  <p>•':' is a separator between parts of the time-of-day portion;</p>
  
  <p>•the second mm is a two-digit numeral that represents the minute;</p>
  
  <p>•ss is a two-integer-digit numeral that represents the whole seconds;</p>
  
  <p>•'.' s+ (if present) represents the fractional seconds;</p>
  
  <p>•zzzzzz (if present) represents the timezone (as described below).</p>
  
  <p>here are more examples</p>
  
  <p>Simple Example 
  <strong>2009-08-31T19:30:00</strong> </p>
  
  <p>More complex examples</p>
  
  <p><strong>2002-10-10T12:00:00-05:00</strong> (noon on 10 October 2002, Central Daylight Savings Time as well as Eastern Standard Time in the U.S.) is <strong>2002-10-10T17:00:00Z</strong>, five hours later than <strong>2002-10-10T12:00:00Z</strong>. </p>
  
  <p>see <a href="http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/datatypes.html" rel="noreferrer">www.w3.org/TR/2004/REC-xmlschema-2-20041028/datatypes.html</a> for more info</p>