DAY

DAY takes a date, such as NOW, and returns an integer representing the date of the month on which it falls. The structure of the date response returned follows the ISO 8601 standard.

Function category: Date

Syntax

DAY(arg1)

Arguments

Description

arg1

Date object or a function that resolves to a day object.

Example

Let's say we received a response with the following insurance claim information:

{
"data": {
"claim": {
"issue_number": "2a515",
"date": "NOW()"
}
}
}

If we wanted to find the day of the month for the NOW() value provided for the date key in the claim object, use the following function.

# Determine the day
DAY(data.claim.date)
‚Äč
# Returns 28 (for example)
# if NOW() is January 28, 2020