How to use date variables in AI agent prompts

Last updated: July 11, 2025

When working with AI agents, you may want to include the current date in your prompts. However, the {{now}} variable is not supported. Instead, you should use our supported system variables for dates.

Supported date variables

The following system variables are available for date-related values:

  • {{current_date}} - Returns the current date in YYYY-MM-DD format

  • {{current_time}} - Returns the current time in HH:MM:SS format

  • {{current_datetime}} - Returns the current date and time in ISO format

For a complete list of all supported system variables, please refer to our dynamic variables documentation.