No Separator Date - CSharp System

CSharp examples for System:DateTime Format

Description

No Separator Date

Demo Code


using System.Globalization;
using System;/* w  ww . ja v  a2 s. co m*/

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

Related Tutorials