I need to change the data-time format to 24 hours.
I'm working with C # MVC5
This is my Model
[Display(Name = "Fecha y Hora de Inicio")]
[DataType(DataType.Date)]
[DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:yyyy-MM-dd HH:mm:ss}")]
public System.DateTime fechaHoraInicio { get; set; }
My Views
@Html.TextBoxFor(model => model.fechaHoraInicio, new { type = "datetime-local" })
I already appreciate the interest.