← Back to all posts

Current Date

On this page

Purpose

Current Date reads the current server time in a selected timezone and returns one formatted Message.

When to use it

  • Add the current timestamp to a prompt.
  • Display the current time in a named timezone.
  • Give a flow explicit time context.

How to use it

Tool Mode

  1. Disable Agent Core's built-in Current Date tool before adding a separate one.
  2. Add Current Date, enable Tool Mode, select the timezone, and connect the tool output to Agent Core.

Normal mode

  1. Keep UTC or select a timezone such as America/New_York.
  2. Connect the Message output to Prompt Template, Text Output, or another message-compatible component.

Configuration

SettingWhat it controlsRecommended starting point
TimezoneChooses the timezone used for the current timestamp. The default is UTC.Keep UTC unless the flow needs a named local timezone.
Tool ModeReplaces the Message output with the get_current_date tool.Leave it off for a fixed timestamp.

Expected result

The output is a Message in the fixed format Current date and time in <timezone>: YYYY-MM-DD HH:MM:SS TZ. Invalid timezone values return an error Message.

Reference details

Agent Core already adds one Current Date tool by default. Adding a second time tool without disabling the built-in one gives the Agent duplicate choices.

Works well with

Use Prompt Template when a prompt needs the current time as context. Use Text Output when the flow should return the timestamp as a plain response.

← Back to all posts