How to format date in MMDDYYY format?

  • Thread starter Thread starter Florida . NET Coder
  • Start date Start date
F

Florida . NET Coder

I am trying to format the system date in the MMDDYYYY format and am having
troubles. Does anyone have a code sample for me? Thank you.
 
String dateString=DateTime.Now.ToString("MM/dd/yyyy");
Console.WriteLine(dateString);

note that the 'MM' portion is in CAPS.

David
 
Back
Top