Datetime Add
DateTime Add
Description
Adds an amount of days, months, years, weeks, hours, minutes and seconds to a datetime object.
Inputs
- date (DateTime): The initial
DateTime
. - years (Number): The years to add.
- months (Number): The months to add.
- days (Number): The days to add.
- weeks (Number): The weeks to add.
- hours (Number): The hours to add.
- minutes (Number): The minutes to add.
- seconds (Number): The seconds to add.
Outputs
- new date (DateTime): The resulting
DateTime
.