Onetastic Macro Documentation >
>
>
DateTime_Add DateTime_Add
Returns a new date/time value by adding the given time span to the given date/time value.
Syntax
DateTime DateTime_Add(
DateTime date,
TimeSpan timespan)
Parameters
- DateTime date
- Date/time value to add to.
- TimeSpan timespan
- Time span amount to add.
Examples
$now = DateTime_Now()
$fourDaysLater = DateTime_Add($now, TimeSpan(4, "day"))
|