CSharp examples for System:DateTime Format
DateTime To Mm Dd Yyyy
using System;//from ww w . ja v a 2 s . co m public class Main{ public static string ToMmDdYyyy(this DateTime? value) { if (value == null) return ""; return value.Value.ToString("MM/dd/yyyy"); } }