tags:

views:

32

answers:

1

hi all;

my problem datetime now Add 63 day.

javascript code:

var aDate = new Date();
var ax_year = aDate.getFullYear();
var ax_mon = aDate.getDate();
var ax_day = aDate.getDay();
var axDate = ax_mon + '.' + ax_day + '.' + ax_year;

axDate = now 28.05.2010

i need axDate + 63 day = 31.07.2010 how to make

+3  A: 

This will add 63 days to aDate

aDate.setDate(aDate.getDate() + 63);
John Hartsock
Well, that's what I get for wanting to bee too fast. This is the correct solution. +1, and time for me to start the weekend :)
Konerak
not work @john pls help
Oraclee
@oraclee Start accepting answers and people will be more likely to help. It would also be good if you would describe exactly how this "not work".
Pointy
most likely he made axdate=johns expression, which changes the date object but returns an integer in an assignment.
kennebec