Hi
I have spent many hours now searching through here without success unfortunately.
Here's my question.
I have 4.0 RC3.5 on j 2.5.6 and have a form which works very well.
I am trying to get some of the user input values to write to the form before submit and have become stuck with the datetime picker.
I would like to extract just the date part of the returned string so that I can do a 'diff' on the days entered, i.e. number of days between selected dates.
I need the time picker function too so separating them would not be ideal.
I have tried
start returns 23-09-2012 14:48:36, I just need 23-09-2012
Any pointers would be gratefully received.
Cheers
I have spent many hours now searching through here without success unfortunately.
Here's my question.
I have 4.0 RC3.5 on j 2.5.6 and have a form which works very well.
I am trying to get some of the user input values to write to the form before submit and have become stuck with the datetime picker.
I would like to extract just the date part of the returned string so that I can do a 'diff' on the days entered, i.e. number of days between selected dates.
I need the time picker function too so separating them would not be ideal.
I have tried
$('DropOff').addEvent('change', function() {
var start = $('DropOff').value;
start returns 23-09-2012 14:48:36, I just need 23-09-2012
Any pointers would be gratefully received.
Cheers