I have read through various posts on converting a string into the datetime format, but cannot resolve my situation. I have a string in the format of 'yyyymmddthhmms s.sssz' that I would like to convert to datetime. My previous attempts:
DateTime dt = DateTime.Parse( string);
DateTime dt = Convert.ToDateT ime(string);
DateTime dt = XmlConvert.ToDa teTime(string, format); where format = 'yyyymmddthhmms s.sssz'
I should note that the string value is being extracted from an Xml document. Any help would be appreciated.
DateTime dt = DateTime.Parse( string);
DateTime dt = Convert.ToDateT ime(string);
DateTime dt = XmlConvert.ToDa teTime(string, format); where format = 'yyyymmddthhmms s.sssz'
I should note that the string value is being extracted from an Xml document. Any help would be appreciated.
Comment