$day
The$day operator extracts the day component from a date object (1-31).
Input
- A single date object
Output
- The day component of the date as an integer (1-31)
Examples
Extract Day from Date
15
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
$day operator extracts the day component from a date object (1-31).
{
"$day": [
{
"$toDate": ["2023-01-15T10:30:00Z"]
}
]
}
15
{
"$day": [
{
"$input": "event_date"
}
]
}
