Date
Current date
Returns the current date –> learn more
Return type
date
Parameters
Name | Type | Allowed values | Required | Placeholder (in UI) |
---|---|---|---|---|
| any of: | false | (UTC (default)) |
New date
Constructs a date from a year, month, and day –> learn more
Return type
date
Parameters
Name | Type | Allowed values | Required | Placeholder (in UI) |
---|---|---|---|---|
| any integer | true | - | |
| any integer | true | - | |
| any integer | true | - |
Date add
Add a period of time to a date –> learn more
Return type
date
Parameters
Name | Type | Allowed values | Required | Placeholder (in UI) |
---|---|---|---|---|
| any integer | true | - | |
| any of: | true | ((e.g., days)) | |
| any date | true | - |
Date diff
Calculate the distance between two dates –> learn more
Return type
integer
Parameters
Name | Type | Allowed values | Required | Placeholder (in UI) |
---|---|---|---|---|
| any date | true | - | |
| any date | true | - | |
| any of: | true | ((e.g., days)) |
Date subtract
Subtract a period of time from a date –> learn more
Return type
date
Parameters
Name | Type | Allowed values | Required | Placeholder (in UI) |
---|---|---|---|---|
| any integer | true | - | |
| any of: | true | ((e.g., days)) | |
| any date | true | - |
Date truncate
Truncates a date to the nearest boundary –> learn more
Return type
date
Parameters
Name | Type | Allowed values | Required | Placeholder (in UI) |
---|---|---|---|---|
| any date | true | - | |
| any of: | true | ((e.g., month)) |
Date extract
Extracts the date part (e.g, month) from a date –> learn more
Return type
integer
Parameters
Name | Type | Allowed values | Required | Placeholder (in UI) |
---|---|---|---|---|
| any of: | true | ((e.g., month)) | |
| true | - |
Format date
Returns a formatted string from a date –> learn more
Return type
string
Parameters
Name | Type | Allowed values | Required | Placeholder (in UI) |
---|---|---|---|---|
| any date | true | - | |
| any string | true | (e.g., %Y-%m-%d) |
More details about format strings here
Parse date
Parses a date from a string –> learn more
Return type
date
Parameters
Name | Type | Allowed values | Required | Placeholder (in UI) |
---|---|---|---|---|
| any string | true | - | |
| any string | true | (e.g., %Y-%m-%d) | |
| any boolean | true | - |
More details about format strings here
Last updated