Possible duplicate:
how to convert date from yyyyMMdd format to mm-dd-yyyy fomrat
I have a string that contains a date in yyyyMMdd format. I want to convert this date to system date format. using the ConvertTo.DateTime () method or any other simple method.
string vlaue = 19851231 // yyyyMMdd
DateTime dateTime = 1985/12/31;
c # datetime
PramodChoudhari Jan 18 '11 at 4:23 2011-01-18 04:23
source share