Can't seem to get this one right. What format string should I use for the following DateTime
input ?
2013-08-24T19:29:26.4050000
I want to extract the date.
I tried:
DateTime.ParseExact(localTime, "yyyy-MM-ddTHH:mm:ss.fffffff", null).ToString("yyyy-MM-dd");
But this doesn't work for me, plus I feel there must be a way to avoid the multiple "f" at the end (I just need the date, don't care about the hour)
Thanks, Li