Adding days to a certain Date
Hi, I wanted to add 30days to a given Date (not today's date). ex: I wanted to add 30days to October 12,2008. Can Anyone please show me how to write this function.
I just don't know how to create the date object for the date October 12, 2008.
Thanks in advance
create the date object, then set a new date by adding 30 days to the date's object.
date.setDate(date.getDate() + 30);
Thanks ZeroKilled . that works !!!
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)