Run-Time Dates and Times
You can use your warehouse's native date and time functions in Parameters and Column Transforms. Coalesce sends that SQL to the platform when the Job runs, so the database evaluates CURRENT_DATE(), CURRENT_TIMESTAMP(), offsets, and month-end functions at run time instead of freezing a literal in the editor.
Set the column Data Type to DATE or TIMESTAMP to match what your expression returns. Mixing types can cause compile errors or implicit casts you did not intend.
Use Run-Time Dates in Parameters
Define a Parameter value with warehouse SQL. When a Job uses that Parameter, the warehouse resolves the expression for that run.
- Snowflake
- BigQuery
- Databricks
Common choices:
CURRENT_DATE()CURRENT_TIMESTAMP()
Example: a Parameter set to CURRENT_DATE() returns the calendar date for each Job run.
In Standard SQL, common choices are:
CURRENT_DATE()CURRENT_TIMESTAMP()
Example: a Parameter set to CURRENT_DATE() returns the calendar date for each Job run.
Common choices:
current_date()current_timestamp()
Example: a Parameter set to current_date() returns the calendar date for each Job run.
Use Run-Time Timestamps in Column Transforms
Use the same functions in the Transform field or Column Editor when you want audit-style fields that refresh every time the Node runs.
- Snowflake
- BigQuery
- Databricks
CURRENT_TIMESTAMP()
Cast to TIMESTAMP_NTZ, TIMESTAMP_LTZ, or TIMESTAMP_TZ when you need a specific timestamp variant for governance or downstream tools.
CURRENT_TIMESTAMP()
Cast to DATE if you only need the calendar day.
cast(current_timestamp() as timestamp)
Adjust the cast target if your table expects a specific timestamp type.
These patterns are typical for CREATED_AT or UPDATED_AT style columns.
Build Incremental-Style Windows
For run-relative windows such as yesterday or T-1, use each engine's date math in filters, Parameters, or transforms.
- Snowflake
- BigQuery
- Databricks
CURRENT_DATE() - 1
You can use similar arithmetic for other offsets, for example CURRENT_DATE() - 7 for a 7-day lookback.
DATE_SUB(CURRENT_DATE(), INTERVAL 1 DAY)
Use INTERVAL with the unit you need for other offsets.
date_sub(current_date(), 1)
For forward offsets, use date_add(current_date(), 7) or the equivalent for your calendar logic.
Month End From a Source Date
To derive the last calendar day of the month from a row's date column, wrap the source expression your Node already exposes, such as {{SRC}} from Helper Tokens.
- Snowflake
- BigQuery
- Databricks
LAST_DAY(CAST({{SRC}} AS DATE))
LAST_DAY accepts an optional second argument for other periods; the default date part is MONTH, which returns month end.
If the source value is NULL, LAST_DAY returns NULL.
LAST_DAY(DATE({{SRC}}))
You can pass a second date_part when you need a boundary other than month end.
If the source value is NULL, LAST_DAY returns NULL.
last_day(to_date({{SRC}}))
last_day returns the last day of the month for the given date.
If the source value is NULL, last_day returns NULL.
Month End From Today
For logic tied to the Job run date, compute month end from the warehouse's current date in the same dialect.
- Snowflake
- BigQuery
- Databricks
LAST_DAY(CURRENT_DATE())
LAST_DAY(CURRENT_DATE())
last_day(current_date())
Calendar Month End and Fiscal Periods
LAST_DAY and last_day return calendar month end. Fiscal period end depends on your organization's calendar. If fiscal months do not line up with calendar months, model those boundaries in a calendar table or mapping and join to it instead of relying on LAST_DAY alone.
Other Common Uses
Run-time dates and times also support:
- Incremental loads - Filter or watermark with relative dates so each run uses the correct window without editing literals.
- Partition keys - Populate date or timestamp partition columns from
CURRENT_DATE()orcurrent_date()so new data lands in the right slice. - Run metadata - Stamp processing time with
CURRENT_TIMESTAMP()orcurrent_timestamp()in logging or audit tables.
Limitations
Some testing utilities only accept fixed date strings and reject run-time date functions. For example, testUtils.test_missing_dates expects a static value rather than CURRENT_DATE().
What's Next?
- Column Transforms for transform fields, data types, and platform quoting.
- Helper Tokens for
{{SRC}}and related tokens in transforms and Macros. - Macros to reuse date logic across Nodes.