CURRENT_DATE() returns the current date in the session time-zone.
CURRENT_DATE() returns today’s calendar date as a DATE value based on the session’s default time-zone. No arguments are required, but you can supply an optional time-zone string.
Use CURRENT_DATE("UTC")
to standardize results across analysts and scheduled jobs.
Yes. Use INSERT … SELECT with CURRENT_DATE() to persist the value at run time. This is common for audit or snapshot tables.
Filter rows where an order ships today: WHERE ship_date = CURRENT_DATE()
. Both operands are DATE, so no casting is required.
Add or subtract days with DATE_ADD / DATE_SUB. Example: DATE_SUB(CURRENT_DATE(), INTERVAL 7 DAY)
returns the date seven days ago.
Data engineers often schedule pipelines in UTC while business users work in “America/New_York.” Supplying a zone guarantees deterministic dates regardless of the job’s location.
Declare a query parameter @tz
and use CURRENT_DATE(@tz)
. This keeps analytics code portable across regions and daylight-saving changes.
Yes, when you pass a named zone like "America/New_York", BigQuery adjusts for DST automatically.
Absolutely. Partition pruning works when you filter on a column = CURRENT_DATE(), improving query performance.