Overview
The day()
function extracts the day of the month from a time value.
Syntax
day(time)
Augment |
Type |
Description |
---|---|---|
time |
Datetime, timestamp, string | The time value |
Return type: Integer
Example of Result
return day("2022-10-05")
Result: 5
Example of Use
Retrieve reviews posted on 11 October each year.
find().nodes({month(@review.time) == 10 && day(@review.time) == 11}) as n
return n{*}