Skip to content

DateTimeAdd Function

Nilesh Ghodekar edited this page Jan 8, 2016 · 2 revisions

Syntax

DateTime? DateTimeAdd(date:datetime, timespan:string) / DateTime? DateTimeAdd(date:datetime, timespan:timespan)

Description

Adds (or Subtracts) a timespan to/from the supplied date/time.

Remarks

If the second input parameter (timespan) is null, an exception is thrown. If the first input parameter (date) is null, a null value is returned.

Supported Version

1.0.0.0 and later

Examples

DateTimeAdd(DateTimeNow(),"365.00:00:00.0")

Clone this wiki locally