Current date and time : Date Time : Development Class C# Source Code


Custom Search

C# Source Code » Development Class » Date Time »

 

Current date and time








    
 

using System;
using System.Globalization;

class MainClass {
    public static void Main() {
        
        Console.WriteLine("Current Date and Time: {0}", DateTime.Now.ToString());
        Console.WriteLine("Current Date Only: {0}", DateTime.Today.ToString());

    }
}

 
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Development Class
» Date Time