Javascript function to add X months to a date
Posted
by George
on Stack Overflow
See other posts from Stack Overflow
or by George
Published on 2010-04-24T21:01:51Z
Indexed on
2010/04/24
21:03 UTC
Read the original article
Hit count: 116
JavaScript
Is there a built in equivalent to the .NET framework's DateAdd or AddMonths functions?
I'm looking for the easiest, cleanest way to add X month to a Javascript date.
I'd rather not handle the rolloing over of the year as done here.
or have to write my own function as done here.
Is there something built in that is as nice as the .NET Date.AddMonths function? Or something close?
© Stack Overflow or respective owner