String.Format - mm and MM are not the same

Don't make the same foolish mistakes I have done for formatting date based on day/month/year. By default, it is based on month/day/year.

Do not confuse between mm and MM.

If not mistaken,

mm = minutes

MM = months

Sample Code:

String.Format("{0:dd/MM/yyyy}", calendarControl);

Cheers.

Published Thursday, March 30, 2006 6:58 PM by chuawenching