$getDay

$getDay operator returns you the day of the date. You can use this in any Expression Object

Syntax

{
    "$getDay": [<date_like_obj>]
}

Properties

Field
Description
Required

<date_like_obj>

The <date_like_obj> expression can be any valid expression as long as it resolves to datetime objects. It can also be a Magical Autocomplete.

true

Returns

integer - The day of the date provided

Examples

Basic Example

{
    "$getDay": ["2025-03-20 00:00:00"]
}

The above expression returns 20

With Magical Autocomplete

Let's say we have declared a variable temp of type datetime which has value of 2025-03-20 00:00:00 currently.

{
    "$getDay": [ "$.variables.temp" ]
}

The above expression would resolve to a result of 20

Last updated