18 Feb
Date Formats
The nice thing about C# is its date format in the ToString() method.
so you have a date object with the value of February 9th, 2008 4:35:04 PM
dateObject.ToString(“MM/dd/yyyy hh:mm:ss tt“);
outputs 02/09/2008 04:35:04 PM;
24 hour clock use HH for hour:
dateObject.ToString(“MM/dd/yyyy HH:mm:ss“);
outputs 02/09/2008 16:35:04;

