0

I want the EndDate text box to show today's date as default date, but I am seeing mm/dd/yyyy and a arrow (which on clicking shows calendar) in the textbox:

[DataType(DataType.Date)]
[DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}", ApplyFormatInEditMode = true)]        
[DisplayName("End Date")]
public string EndDate { get; set; }

$(document).ready(function () {       
$('.date1').datepicker();

@Html.EditorFor(model => model.EndDate, new { @class = "date1" })
user1987392
  • 3,921
  • 4
  • 34
  • 59

0 Answers0