.NET Format String Cheat Sheet
I do a lot of ASP.NET development at my day job and at my company RIM Systems and I frequently have to format dates and numbers with .NET’s String.Format, .ToString(), etc. Well I can never seem to keep the links to the reference on hand. Last time I was looking at the reference I decided to make a cheat sheet for the .NET formatting codes and I’ve posted a copy for you to download.
Here’s what’s included:
- Standard DateTime Format Strings
- Custom DateTime Format Strings
- Standard Number Format Strings (with examples)
- Custom Number Format Strings (with examples)
I don’t know if you can still call it a cheat sheet if its six pages long, but I’m going with it. I’ve provided some links to my favorite cheat sheets as well. I can think of a few other .NET topics that could use them and if I get some time, will whip them up later.




