add 5 days to a string
Posted: Tue Mar 08, 2011 6:21 pm
I have this string
var start = $('[name=invoicedate]').val();
alert('start'); // 2010/01/01
how can I add five days to have the following?
alert('start'); // 2010/01/10
Tried
var start = new Date(year, month, day+5);
but seems not work
var start = $('[name=invoicedate]').val();
alert('start'); // 2010/01/01
how can I add five days to have the following?
alert('start'); // 2010/01/10
Tried
var start = new Date(year, month, day+5);
but seems not work