In asp.net MVC 5, I have a form that displays data from a DTO object:
public class FieldDTO
{
[DataType(DataType.DateTime)]
[DisplayFormat(ApplyFormatInE
Seems like wrong jQuery datepicker's date format like @ataravati mention.
Try to init datepicker with the dateFormat option, like this:
$(".datepicker").datepicker({ dateFormat: 'dd/mm/yyyy' });
Get to debug or set the dateFormat option, after init, like this:
//this how to get what is it now
var dateFormat = $(".datepicker").datepicker("option", "dateFormat");
//set right format
$(".datepicker").datepicker("option", "dateFormat", "dd/mm/yyyy");