Mega Code Archive

 
Categories / C# / Date Time
 

General dateshort time format

using System; class Sample  {     public static void Main()      {        Console.WriteLine( "(g) General date/short time:. {0:g}\n",DateTime.Now);      } }