No Separator Time - CSharp System

CSharp examples for System:DateTime Format

Description

No Separator Time

Demo Code


using System.Globalization;
using System;//from w  w  w.ja v a2 s .com

public class Main{
        public static string NoSeparatorTime(this DateTime date)
        {
            return date.ToString("hhmmss");
        }
}

Related Tutorials