33
rated 0 times
[
38]
[
5]
/ answers: 1 / hits: 9472
/ 10 Years ago, fri, march 21, 2014, 12:00:00
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?
More From » jquery