Mega Code Archive

 
Categories / C# / Date Time
 

General date long time format

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