My model has property TimeScheduleOnUtc
like this
[DisplayFormat(DataFormatString = "{0:MM/dd/yyyy HH:mm}")]
public DateTime? TimeScheduleOnUtc { get; set; }
My form has
<input type="text" class="form-control datetimepicker" placeholder="MM/dd/yyyy HH:mm" name="TimeScheduleOnUtc" />
But when I submit the form I always get a null value in TimeScheduleOnUtc
. It just happened on my computer and all of my members seem they work fine. I can't find a reason why, and how can I fix. I think it may be a bug depends on date time configuration on my computer.