I wrote a two page “cheat sheet” that covers all the .net DateTime format strings (one page for standard format strings and one for custom format strings).
This sheet shows shows the result of the format strings in four cultures: English US, English GB, Spain and France. I hope that this will remind developers how different the date and time format even in languages that are relatively close to English.
Download .net DateTime Format Strings Cheat Sheet, latest version, PDF format
And remember to pass a CultureInfo object to DateTime.ToString and DateTime.Parse, read The Single Most Important Internationalization Tip to know what CultureInfo object to use (CultureInfo.CurrentCulture or CultureInfo.InvariantCulture, never anything else).
Please link to http://go.nbdtech.com?27819A34 and not directly to the PDF (this link will always point to the latest version).
posted @ Monday, August 3, 2009 4:53 PM