Loading...
Loading...
Add or subtract days, weeks, months, or years from any date.
Yes, enter a negative value in the amount field to subtract days, weeks, months, or years from a date.
Yes, the JavaScript Date object handles leap years automatically. February 29 is valid in leap years, and February 28 is used in non-leap years.
Adding 1 month to January 31 gives February 28 (or 29 in leap years), as February 31 does not exist. The date automatically adjusts.