I have two separate fields on the page: one for date and one for time.
This is the model:
[Required]
[DisplayFormat(ApplyFormatInEditMode = true, Dat
Add DataType.Time attribute to your time field and use EditorFors to remove format duplication:
Model
[Required]
[DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:hh:mm tt}")]
[DataType(DataType.Time)]
public DateTime? StartTime { get; set; }
[Required]
[DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:MM/dd/yyyy}")]
public DateTime Date { get; set; }
View
@Html.EditorFor(m => m.Date, new { type = "text" })
@Html.EditorFor(m => m.StartTime, new { type = "text", id = "timeStart" })