http://silvernight.wordpress.com/
Wednesday, July 01, 2009
DateTime Formats in C#
DateTime Formats in C#
string appdate = System.DateTime.Now.ToString("M/d/yyyy");string time=DateTime.Now.ToString("hhmmtt");
string fileName = DateTime.Now.ToShortDateString().Replace("/","-") ;
string appdate=DateTime.ParseExact(txtAppDate.Text, "M/d/yyyy", new System.Globalization.DateTimeFormatInfo()).ToString("M/d/yyyy");
Labels:
Dates
Subscribe to:
Posts (Atom)