Skip to content
Shaun Lawrence edited this page Aug 11, 2020 · 3 revisions

Converts and returns the parameter as a DateTime.

Date(convertToDate)

or

Date(convertToDate, format)

Parameters

convertToDate

The object to convert to a DateTime.

Type object (basically anything that can be converted to a DateTime.
Required Yes

format

The format to use when converting the first parameter (expecting a string) to a DateTime.

Type string
Required No

Examples

AddDays(#today#, 2)

Adds 2 days to the current date.

AddDays(#today#, -2)

Subtracts 2 days from the current date.

Clone this wiki locally