This is MY blog. The views represented here are not in relation to anybody else. Please read my full disclaimer for a more complete disclaimer.
Many times when programming in .NET you need your DateTime variable to display in various formats:
08/22/2006 Tuesday, 22 August 2006 etc...
This is thankfully made pretty trivial with the ToString() function. Just pass in the appropriate format string and you will get what you need.
You can find a great list of these here.
Comments
July 23. 2008 05:53
Thx for the link - that´s a good ressource for this issue. I´ve found another cheat sheet I use regulary: http://alexonasp.net/samples/stringformatting/
Eigene Homepage |