ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
getDate and setDate in 5.3
Title:
B
I
{code}
?
After upgrade to v 5.3 var dd = $("#PayDate").datepicker('getDate'); this no more run
Save Changes
Cancel
Meccanica Rossi
asked at 16 Oct 2017
Answers
B
I
{code}
?
you can use these functions: function getDate(d) { try { return $.datepicker.parseDate(d.data('o').p.dateFormat, d.val()); } catch(ex) { return null; } } function setDate(d, val) { d.val($.datepicker.formatDate(d.data('o').p.dateFormat, val)); } like this: var date = getDate($('#Date1')); setDate($('#Date1'), new Date());
Save Changes
Cancel
Omu
answered at 16 Oct 2017
and the setDate function ?
at 16 Oct 2017
Meccanica Rossi
I've edited my answer
at 16 Oct 2017
Omu
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK