Monthly Archives: December 2009

Date Formatting in C#

Cheat sheet <%= String.Format("{specifier}", DateTime.Now) %> Specifier Description Output d Short Date 08/04/2007 D Long Date 08 April 2007 t Short Time 21:08 T Long Time 21:08:59 f Full date and time 08 April 2007 21:08 F Full date and

Posted in C#