https://retellai.com/?utm_source=discord&utm_medium=seo logo
ensure it always use current year
# ❓・ai-evy-support
f
@AI Evy ensure it always use current year
a
Thanks for tagging me @freelancedaddy. I'll look through relevant sources and get back to you shortly.
### Answer To ensure your Retell AI agent always uses the current year, you can use the
{{current_time}}
dynamic variable [(1) ]() . This variable provides the agent with real-time date and time information. You can implement this by adding the current time variable to your agent's prompt or first sentence . For example, include something like "current time is {{current_time}}" in your agent configuration [(2) ]() . Some users have reported issues with date handling, where the LLM struggles with relative dates like "tomorrow" [(3) ]() . A recommended approach is to ask the LLM to confirm specific dates with users using the full format, like "January 9th" instead of relative terms . Additionally, you can specify timezone-specific formatting using
{{current_time_[timezone]}}
format [(1) ]() . This helps ensure the agent has accurate temporal context for making date-related decisions. If you encounter issues with the current time function not working properly, make sure you've correctly implemented the variable syntax and consider testing in different browsers, as some users have reported browser-specific issues [(2) ]() .
​ To learn more, see the sources I considered: [[1] Discord message from @toni3601648 on 2025-07-22](https://discord.com/channels/1186424376300679209/1186462578310910112/1397253397073236088) [[2] when using {{current_time}}, it says todays date is Jan 29th](https://discord.com/channels/1186424376300679209/1341124870922174587) [[3] Discord message from @trill_og.sol on 2025-01-09](https://discord.com/channels/1186424376300679209/1186462578310910112/1326721543945977906) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
f
set current timezone to los angeles