https://retellai.com/?utm_source=discord&utm_medium=seo logo
I'm getting the current date with `{{current_time_...
# ❓・ai-evy-support
b
@AI Evy I'm getting the current date with
{{current_time_America/New_York}}
, which works, and then right after, calling a function and passing in the current date. The month and day are right but the year is 2024 instead of 2025. plz help
a
Thanks for tagging me @brytons. I'll look through relevant sources and get back to you shortly.
### Answer The {{current_time_America/New_York}} dynamic variable is designed to provide the current date and time for the specified timezone [(1) ]() [(2) ]() . If you're seeing the correct month and day but the year is 2024 instead of 2025, this is not expected behavior based on the official documentation—{{current_time_[timezone]}} should reflect the actual current date and year . There have been previous user reports of time or date inconsistencies with the {{current_time}} variable, sometimes related to browser or environment issues [(3) ]() [(4) ]() . In one case, switching browsers resolved the problem [(3) ]() . However, there is no official documentation indicating a known bug or fix for a year discrepancy. Make sure: - You're not accidentally passing a hardcoded or cached value to your function. - The function is receiving the string directly from the dynamic variable substitution, not from an earlier, possibly outdated, value. If the issue persists and you have confirmed the variable is being used as documented, you may want to: - Test the same setup in a different browser or session to rule out client-side caching issues . - Double-check your agent and function logic for any manual overrides. If none of these steps resolve the problem, this could be an edge case or a bug not covered in the available documentation. For additional troubleshooting, you may want to reach out via the official channels: - [Dynamic Variables Documentation]() - [Platform Changelogs | Retell AI]() Would you lik
e a general answer about troubleshooting dynamic variables, or do you want to continue narrowing down the issue specifically with the current_time variable?
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[2] Platform Changelogs | Retell AI](https://www.retellai.com/changelog) [[3] when using {{current_time}}, it says todays date is Jan 29th](https://discord.com/channels/1186424376300679209/1341124870922174587) [[4] Current_Time variable not working](https://discord.com/channels/1186424376300679209/1301829402446790717) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
b
i'm actually passing in a modificatino of the current date, e.g. "tomorrow", which is current date + 1 day, and this is when it's failing
@AI Evy
a
Thanks for the follow-up, @brytons. I'll get back to you soon.
### Answer There is no official documentation describing how to perform date arithmetic (such as "current date + 1 day") directly using Retell AI's dynamic variables like {{current_time}} or {{current_time_America/New_York}}. The dynamic variable is designed to provide the current time for a given timezone, but it does not natively support operations like adding days to produce "tomorrow" or any other date manipulation [(1) ]() [(2) ]() . If you are passing in a manually modified date string (e.g., constructing "tomorrow" yourself) , make sure that the value you set as a dynamic variable is accurate and formatted as a string, since all dynamic variables must be strings [(1) ]() . Any logic for incrementing the date by one day must be handled outside of Retell AI, and then the result should be injected as a string dynamic variable . There are no documented built-in features or syntax for date math inside Retell AI dynamic variables [(1) ]() [(2) ]() . If the year is coming out wrong after your manual modification, double-check your date calculation logic in your own code before passing it to Retell AI. If you want more guidance on how to troubleshoot or work around this, let me know if you'd like a general answer based on best practices for handling dates outside of Retell AI.
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[2] Platform Changelogs | Retell AI](https://www.retellai.com/changelog) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
b
no the llm is supposed to do this T_T and it does it right, e.g. if i say for a week starting tomorrow it does: 2024-09-23 to 2024-09-30 but it just gets the year wrong!
a
Thanks for the follow-up, @brytons. I'll get back to you soon.
b
@AI Evy
a
### Answer There is no official documentation stating that the LLM in Retell AI natively supports date arithmetic (like “tomorrow” or “a week from today”) using dynamic variables such as {{current_time}} or {{current_time_America/New_York}}—these variables simply inject the current date and time as a string [(1) ]() . If you are seeing the correct month and day, but the year is wrong (e.g., 2024 instead of 2025) , this is not described as expected or supported behavior in the documentation . The only officially documented way to ensure the LLM has the correct date is to inject it as a dynamic variable (e.g., {{current_time}}) and reference it in your prompt , [(2) ]() . Any logic for incrementing dates (like “tomorrow”) must be performed outside Retell AI and then passed in as a string [(1) ]() . There is no mention of the LLM itself reliably performing date arithmetic or fixing year errors automatically. If you are observing the LLM produce correct logic except for the year, this is not covered or explained by the official documentation or referenced community threads , [(2) ]() . If you need further troubleshooting or want to see best practices for handling dates with dynamic variables, let me know if you’d like a general answer based on broader experience.
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[2] Date Recognition Issue in the LLM](https://discord.com/channels/1186424376300679209/1293970874365640864) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
Appreciate the feedback! Feel free to ask me again with additional guidance or context.
@AI Evy
a
Thanks for the follow-up, @brytons. I'll get back to you soon.
### Answer There is no official documentation stating that Retell AI’s LLM or dynamic variables (like {{current_time_America/New_York}}) support native date arithmetic or can always correctly calculate future dates such as “tomorrow” or “a week from today” with the correct year [(1) ]() . The dynamic variable simply injects the current date/time string for the specified timezone . Any date math or modifications (for example, adding days or changing the year) must be done outside of Retell AI and passed in as a string . If you are seeing the LLM generate the right month and day, but the wrong year (2024 instead of 2025) , this behavior is not documented or described as expected in the official sources . There are no documented settings or workarounds for this issue. All dynamic variable values must be provided as strings, and there is no mention of built-in logic to correct or manipulate date values beyond what is injected by the dynamic variable . If you want to troubleshoot further, you may need to handle date calculation outside of Retell AI, then inject the correct result as a string dynamic variable .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) ​