Post by altair on Feb 10, 2015 5:21:34 GMT 10
Hi Folks,
I am in an issue with my Application. It reads an XML file from the web which contains some Date and Time Info encoded in ISO 8601 or XSLT Date format.
This is the line I want to translate:
<verInfo> <ver launch="2015-02-09T03:17:14" inst="2015-02-09T14:26:30"/> </verInfo>
And for some reason syntax highlighting is not working in the Create Thread Page, due to which I haven't highlighted the code.
Thanks, Altair - The Flying One
|
|
Post by Prezence on Feb 10, 2015 9:10:37 GMT 10
You can probably use Substrings to find the 2015-02-09T03:17:14 or 2015-02-09T14:26:30 and then use the DateTime.Parse method.
Check out our website here. Check out AirBrowse here. Follow us on GitHub here.
|
|
Post by altair on Feb 10, 2015 21:43:36 GMT 10
Works Good. But instead of creating strings, I directly parsed it through my XmlReader's GetAttribute method.
Thanks and you guys rock, Altair - The Flying One
|
|