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
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.