My program receives data from a device in XML. The device returns date times as a string in DD/MM/YYYY hh:mm:ss.fff format. How do I deserialize this into a DateTime object, even though the local machine is set up for the US English culture?
My program receives data from a device in XML. The device returns date times
Share
You can use
DateTime.ParseExactNote that the case is important
MM: monthmm: minutesHH: Hours (24-hour)