C# Date Time Formatting
Use a custom DateTime
formatting string:
// Returns Jan 31, 2012
myDateTimeObject.ToString("MMM dd, yyyy");
// Returns 31 January, 2012
myDateTimeObject.ToString("dd MMMM, yyyy");
All of the custom date/time formats are listed here.
All types of date formatting you need.
Just select the correct string format you need:
- MMM - gives you Jan, Feb, Mar
- MMMM - gives you January, February, March