View Full Version : Jason's Calendar: how to set current day + 1 ?
ADtlas
10-01-2013, 10:03 AM
DD Jason's Date Input Calendar
http://www.dynamicdrive.com/dynamicindex7/jasoncalendar.htm
Hello,
I'm currently using the above script with the following parameter:
DateInput('dlo', true, 'YYYYMMDD')
And I would like to display by default, in the related input fields, the day following the current one...
Please can you direct me how to achieve this behaviour ?
Thanks in advance for your appreciated help and best regards,
Germain
Beverleyh
10-01-2013, 11:15 AM
Please do not post in multiple forums. I have deleted your other thread and also removed the promotional website link from the bottom of your post as this is against policy for new members.
ADtlas
10-01-2013, 12:45 PM
I'm so sorry Beverleyh for my two postings but I've realized afterwards that I was in the wrong forum and then I was unable to remove the wrong posting... Thank you for both your actions !
QUOTE=Beverleyh;300188]Please do not post in multiple forums. I have deleted your other thread and also removed the promotional website link from the bottom of your post as this is against policy for new members.[/QUOTE][/QUOTE]
jscheuer1
10-01-2013, 05:08 PM
<script type="text/javascript">
var morgen = new Date();
morgen.setDate(morgen.getDate() + 1);
function padnum(n){
return n < 10? '0' + n : n;
}
morgen = [morgen.getFullYear(), padnum(morgen.getMonth() + 1), padnum(morgen.getDate())].join('');
DateInput('dlo', true, 'YYYYMMDD', morgen);
</script>
ADtlas
10-02-2013, 03:57 PM
Hello John,
It is so simple... after having seen your code which works beautifuly :-)
Many thanks for your fast and very appreciated answer !
Cheers,
Germain
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.