i need to calculate the date from thirty days using Date
in javascript
var now = new Date();
Example:
if today is the 13 February 2013, 30 days later is the 15 March 2013. so something that is different from 30DaysLaterMonth = ActualMonth+1.
I hope my question is clear.. :) thanks everybody!
var now = new Date();
now.setDate(now.getDate() + 30);
I think its better for you to use Datejs
Datejs is an open-source JavaScript Date Library.
or you can do it own:
var cur = new Date(),
after30days = cur.setDate(cur.getDate() + 30);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With