MoveDate

The MoveDate()function shifts a date by a given amount of a date unit.

This function is SQL compatible. For more information about SQL compatibility, see our documentation.

Syntax

MoveDate(date, number, unit)

MoveDate('2016-05-02T05:37:44', -3, year) =>Result: Thursday, May 2, 2013 5:37:44 AM

MoveDate(UnknownDate, UnknownNumber, Unknownunit) =>Result: (unknowndate)

Parameters

Name
Type
Required
Description

date

date time

☑️

a date

number

numeric

☑️​​

the number or amount that a date the value is moved.

unit

Keyword

​​☑️

the [date unit] that is moved in date. Possible values: year, month, week, day, hour, minute or second.

Last updated

Was this helpful?