Reputation: 11
I've searched around for a solution for my UI problem - here and on other blogs and didn't come up with a solution yet.
I have an HTML file, with jquery UI datepicker in it,
dateFormat: 'dd/mm/yy',
altFormat: 'mm/dd/yy'
When form is submitted, the script that interprets it sees the day as a month, month as a day and stalls.
How do i basically display Euro standards date, but process the American standards?
Thank you in advance.
P.S. I'm a noob in JS, any help would be appreciated.
Upvotes: 1
Views: 845
Reputation: 2853
Make sure you're setting a proper altField
selector for an existing field.
http://jqueryui.com/demos/datepicker/
Working example: http://jsfiddle.net/marcosfromero/kyfEy/
Upvotes: 3