My model class property looks like this
public DateTime PurchaseDate { get; set; }
and inside view
@Html.TextBoxFor(model => model.PurchaseDate, new { @class = "form-control date-picker" })
@Html.ValidationMessageFor(model => model.PurchaseDate)
and I am giving a date like this in form
19/06/2015
But it gives validation message and not allows page to be submitted, message is like this
The field PurchaseDate must be a date.
if I give date in mm/dd/yyyy
format it works. Can anyone point out what I am doing wrong here?