https://retellai.com/?utm_source=discord&utm_medium=seo logo
How do I get my agent to reliably know what date a...
# ❓・ai-evy-support
e
@AI Evy How do I get my agent to reliably know what date and time it is?
a
Thanks for tagging me @elysia_35389. I'll look through relevant sources and get back to you shortly.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
### Answer To get your agent to reliably know the current date and time, use Retell's dynamic variables in your agent's prompt [(1) ]() . Add this to your prompt:
Copy code
The current date and time is {{current_time}}
By default,
{{current_time}}
returns the time in
America/Los_Angeles
timezone in the format "Thursday, March 28, 2024 at 11:46:04 PM PST" . If you need a different timezone, use the format
{{current_time_[timezone]}}
. For example:
Copy code
The current date and time is {{current_time_Australia/Sydney}}
You can also use
{{current_calendar}}
or
{{current_calendar_[timezone]}}
to provide a 14-day calendar view . Important troubleshooting note: If you're experiencing issues where the agent states an incorrect date, ensure you don't have any test dynamic variables set that might be overriding the system variable [(2) ]() . Check your agent settings for any custom dynamic variables that could be interfering with the date/time .
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[2] when using {{current_time}}, it says todays date is Jan 29th](https://discord.com/channels/1186424376300679209/1341124870922174587) ​