I'm using datetimepicker from this http://xdsoft.net/jqplugins/datetimepicker/ and I have this property in my model:
[DisplayFormat(DataFormatString = "{0:dd.MM.yyyy HH:mm}", ApplyFormatInEditMode = true)]
public DateTime Date { get; set; }
in View:
$(document).ready(function () {
$("#Date").datetimepicker({
format: "d.m.Y H:i",
lang: "ru",
minDate: 0,
onСlose: function () {
$(this).valid();
}
});
});
and picking all date I always got Invalid Date; Message : The field Date must be a date.