Print Current Time - CSharp System

CSharp examples for System:DateTime

Description

Print Current Time

Demo Code


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()); }
}

Related Tutorials