<div class="form-group"> @Html.LabelFor(m => m.DateTimeArrival, new { @class = "col-md-2 control-label" }) <div class="col-md-3"> <div class='input-group date' id='DateTimeArrID' data-date-format="dd/MM/yyyy HH:ii p"> @Html.TextBoxFor(m => m.DateTimeArrival, "{0:dd/MM/yyyy hh:mm tt}", new { @class = "form-control"}) <span class="input-group-addon"> <span class="fa fa-calendar"></span> </span> </div> @Html.ValidationMessageFor(m => m.DateTimeArrival, "", new { @class = "text-danger" }) </div>
[DisplayName("Date and Time of Incident")] [Required] [DataType(DataType.DateTime), DisplayFormat(DataFormatString = "{0:dd/MM/yyyy hh:mm tt}", ApplyFormatInEditMode = true)] public Nullable<System.DateTime> DateTimeArrival{ get; set; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)