[DataType(DataType.Date)] [DisplayFormat(DataFormatString = "{0:MM/dd/yyyy}", ApplyFormatInEditMode = true)] [Required(ErrorMessage = "*")] public DateTime? TransferDate { get; set; }
$("#TransferDate").datepicker({ dateFormat: 'mm/dd/yy' });
@Html.EditorFor(model => model.TransferDate)
<globalization uiCulture="en-US" culture="en-US"/>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)