CSharp examples for System:DateTime Format
No Separator Date
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"); } }