I'm at my wits end trying to force this jQuery datepicker control to understand specific date formats. What the hell is going on here?
View
@Html.TextBoxFor(model => model.StartDate, "{0:dd/MM/yyyy}", new { @class = "datefield" })
Javascript
$(function () {
$(".datefield").datepicker({
dateFormat: 'dd/MM/yyyy',
showOn: "button"
});
});
On page load
datepicker clicked, so far so good
date selected... what?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…