Reputation: 3478
I need to display dates in Month date, year (Ex: January 20, 2010).
Any suggestion ?
Upvotes: 4
Views: 182
Reputation: 72658
var dt = new DateTime(2010, 20, 1);
string s = dt.ToString("MMMM dd, yyyy");
Upvotes: 6
Reputation: 19601
See this MSDN document. Contains all the information required for custom date and time format strings.
http://msdn.microsoft.com/en-us/library/8kb3ddd4.aspx
Probably worth bookmarking it as well, I always find myself coming back to it.
Upvotes: 0