amukta
asked on
how do i convert a date from the format mmddyyhhmiss to yyyymmdd-hh24miss-very urgent
how do i convert a date from the format mmddyyhhmiss to yyyymmdd-hh24miss-very urgent
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you very much.It helped me a lot
ASKER
Thank you very much
ASKER
THnak you very much
You are welcome. Thank you too.
//mmddyyhhmin
string dateString = "031820070915";
IFormatProvider culture = new CultureInfo("en-US", true);
DateTime dt = DateTime.ParseExact(dateSt
Console.WriteLine(dt);
//yyyymmdd-hh24min
Console.WriteLine(dt.ToStr