Testing code seen in WebmasterWorld JS Forum:
http://www.webmasterworld.com/javascript/3495404.htm
var exdate=new Date();
exdate.setDate(exdate.getDate()+1);
document.cookie="bNumber=" +escape("1_2_3")+ ";expires="+exdate.toGMTString());
This works OK. Adding 1 to the day of the month, even if we're on the last day on the month (ie. 31st Oct), returns the date of the next day (eg. 1st Nov)
[Home]