today
datetimeReturns the current date
Syntax
today() Returns
date The current date (without time component)
Examples
Get the current date
Input:
today() Output:
"2025-12-25" Compare dates with today
Input:
map({date: .date, is_today: (.date == today())}) Output:
Check if a date is today Filter recent records
Input:
map(select(date_diff(today(), .date, "days") <= 7)) Output:
Filter events from the last 7 days The today() function returns the current date without a time component, useful for date comparisons and filtering.
Usage
Use today() to filter data for today’s date, compare dates, calculate date differences, or add current date markers to your data.