DateTime To Mm Dd Yyyy - CSharp System

CSharp examples for System:DateTime Format

Description

DateTime To Mm Dd Yyyy

Demo Code


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");
        }
}

Related Tutorials