CSharp examples for System:DateTime
Print Current Time
using System.Text; using System.Collections.Generic; using System;/*from ww w.ja va 2 s .c o m*/ public class Main{ public static void PrintTime() { Console.WriteLine(DateTime.Now.ToShortTimeString()); } }