Hi,
I tried to set the selected Date on a timepicker for getting min_date to work.
The control updates the current time - but not the current Date. This way the correctly set minDate work.
Example:
selectedDate= Sat Sep 19 2009 19:17:00 GMT+0200
minDate=Wed Sep 16 2009 00:00:00 GMT+0200
Setting selectedDate toWed Sep 16 2009 10:00:00 GMT+0200 will change the selectedDate to:
Sat Sep 19 2009 10:00:00 GMT+0200 and not to th above value.
Do you have any ideas on what goes wrong?
My Code looks like this:
Regards,
Torben
I tried to set the selected Date on a timepicker for getting min_date to work.
The control updates the current time - but not the current Date. This way the correctly set minDate work.
Example:
selectedDate= Sat Sep 19 2009 19:17:00 GMT+0200
minDate=Wed Sep 16 2009 00:00:00 GMT+0200
Setting selectedDate toWed Sep 16 2009 10:00:00 GMT+0200 will change the selectedDate to:
Sat Sep 19 2009 10:00:00 GMT+0200 and not to th above value.
Do you have any ideas on what goes wrong?
My Code looks like this:
function js_fahrteingabe_zeitControl_setDate(controlId, dateIn){ |
var tmpCtrlZeit = $find(controlId); |
var currentDateTime=tmpCtrlZeit.get_timeView().getTime(); |
var actTime=dateToTimeString( currentDateTime ); |
var newDateTime = datetimeStringToDate(dateToDateString(dateIn) + " " + actTime); |
tmpCtrlZeit.set_selectedDate(newDateTime); |
var date = tmpCtrlZeit.get_selectedDate(); |
date.setDate(newDateTime); |
tmpCtrlZeit=null; |
} |
Regards,
Torben