B
Brett Baisley
Hello
I am using two datetimepicker controls to allow the user to select two
dates. I've called them dateIn and dateOut. After they pick the dateIn, I
want to set its Leave method to automatically set the date of dateOut to
whatever was selected in dateIn + 2 days (as this will be the most common
selection for the second date).
I tried this:
dateOut.value = dateIn.value + 2
But I get an error saying I can't add date's and doubles.
Is there a way to increment the date by 2?
I am using two datetimepicker controls to allow the user to select two
dates. I've called them dateIn and dateOut. After they pick the dateIn, I
want to set its Leave method to automatically set the date of dateOut to
whatever was selected in dateIn + 2 days (as this will be the most common
selection for the second date).
I tried this:
dateOut.value = dateIn.value + 2
But I get an error saying I can't add date's and doubles.
Is there a way to increment the date by 2?