Get Time - CSharp System

CSharp examples for System:DateTime Time

Description

Get Time

Demo Code


using System.Globalization;
using System.Text.RegularExpressions;
using System.Web;
using System.Linq;
using System.Collections.Generic;
using System;/*from  www .jav  a 2  s.  c  o  m*/

public class Main{
            public static string GetTime()
            {
                return DateTime.Now.ToString("HH:mm:ss");
            }
}

Related Tutorials