New Here?
My name is Nir and I'm the founder of Nbd-Tech, this blog is about things that interest me, so you can find posts on productivity, running a software company and obscure technological topics.
If you like what you read you can
subscribe to the blog feed or
follow me on twitter.
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