J
Jack
I am trying to format a DateTime object as mmddyyyy and NOT mm/dd/yyyy. What
is the easiest way to do this?
is the easiest way to do this?
DateTime dt = DateTime.Now;Jack said:I am trying to format a DateTime object as mmddyyyy and NOT mm/dd/yyyy. What
is the easiest way to do this?
anon said:DateTime dt = DateTime.Now;
System.Console.WriteLine(string.Format("{0,2:00}{1,2:00}{2,04:0000}",dt.Day,dt.Month,dt.Year));