How to Get Current Time in C#/CSharp

using System;



namespace Hello_World
{

    class Program
    {
        static void Main(string[] args)
        {
            DateTime time = DateTime.Now;

            Console.WriteLine(time.ToShortTimeString());
        }
    }
}
;

 

  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •