DateTime date1 = new DateTime(2011, 08, 04); string myDate = date1.ToString("MM/dd/yyyy g",CultureInfo.InvariantCulture); // Displays 08/04/2011 A.D.
DateTime dt=DateTime.Now dt.ToString(FORMAT) FORMAT 1. "dd/MMM/yyyyy" 2. "ddd/MMM/yyyyy"
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)