Convert this string to a datetime

  • Thread starter Thread starter artist
  • Start date Start date
A

artist

Hi,

Do you guys know if there is an easy way to convert a string like this:

20080917005525.670

to a DateTime without having to parse the whole string?


Thanks!
 
I think I got it:

DateTime.ParseExact(message.timeStamp.ToString(), "yyyyMMddHHmmss.fff",
System.Globalization.CultureInfo.InvariantCulture);

thanks anyway
 
Back
Top