https://retellai.com/?utm_source=discord&utm_medium=seo logo
HI How can we set a current date in our voice age...
# ❓・ai-evy-support
n
HI @AI Evy How can we set a current date in our voice agent , i want when i say what is the current date it tell today date how we can do that please tell me about that.
a
Thanks for tagging me @noble_badger_16849. I'll look through relevant sources and get back to you shortly.
### Answer To enable your Retell AI voice agent to provide the current date, you need to use Retell AI's dynamic variables feature [(1) ](

▾

) . Specifically, you should add the
{{current_time}}
variable to your agent's prompt or context [(1) ](

▾

) [(2) ]() . Here's how to set it up: In your agent's context or prompt, add: [(1) ](

▾

)
Copy code
Current date and time: {{current_time}}
You can also specify a timezone by using the format
{{current_time_[timezone]}}
, for example
{{current_time_America/Los_Angeles}}
[(1) ](

▾

) [(3) ]() . Important considerations: - The
{{current_time}}
variable defaults to Los Angeles time, but you can customize it for your timezone [(1) ](

▾

) - Make sure to publish your agent after making changes for them to take effect [(3) ]() - If you're experiencing issues where the agent reports an incorrect date, verify that you've included the dynamic variable in your prompt and that your agent is published [(3) ]() [(4) ]() - LLMs can sometimes struggle with date interpretation, so it helps to be explicit in your prompt about handling phrases like "this Friday" or "next week" [(5) ]() The dynamic variable will automatically inject the current date and time into your agent's context, allowing it to respond accurately when users ask about the current date [(1) ](

▾

) .
​ To learn more, see the sources I considered: [[1] Part 1: BuildYour First Retell Voice Al Agent That Sells Cars](

https://www.youtube.com/watch?v=p0DusrDjfjA▾

) [[2] Agent fails giving the current date](https://discord.com/channels/1186424376300679209/1342239628073107566) [[3] Issue with current date](https://discord.com/channels/1186424376300679209/1432663702485864448) [[4] when using {{current_time}}, it says todays date is Jan 29th](https://discord.com/channels/1186424376300679209/1341124870922174587) [[5] Discord message from @mattybgoood on 2025-01-07](https://discord.com/channels/1186424376300679209/1186462578310910112/1326312718558298233) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
n
Hi thanks