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");
No comments:
Post a Comment