https://retellai.com/?utm_source=discord&utm_medium=seo logo
what time zone does current_time use
# ❓・ai-evy-support
k
@AI Evy what time zone does current_time use?
a
Thanks for tagging me @K Rudy. I'll look through relevant sources and get back to you shortly.
### Answer The
{{current_time}}
dynamic variable uses the
America/Los_Angeles
timezone (Pacific Time) . [(1) ]() If you need a different timezone, you can use
{{current_time_[timezone]}}
with your desired timezone—for example,
{{current_time_Australia/Sydney}}
or
{{current_time_America/New_York}}
.
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
k
@AI Evy Now can the agent know what day of the week is it currently? Not just the date
a
Thanks for the follow-up, @K Rudy. I'll get back to you soon.
### Answer Yes, the
{{current_time}}
variable already includes the day of the week. [(1) ]() The format returned is:
"Thursday, March 28, 2024 at 11:46:04 PM PST"
So when you use
{{current_time}}
or
{{current_time_[timezone]}}
, your agent automatically knows the full day name (e.g., "Thursday") , not just the date.
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
k
@AI Evy what if I dynamic variable gives the agent a date such as 03/09/2026 how can I make the agent know what day of the week is that date on
a
Thanks for the follow-up, @K Rudy. I'll get back to you soon.
### Answer Retell AI's built-in system variables like
{{current_time}}
only provide the current date/time with the day of the week—they don't calculate the day of the week for an arbitrary date you pass in. [(1) ]() To make your agent know what day of the week a date like
03/09/2026
falls on, you have a few options: Option 1: Pre-calculate before the call When you pass the dynamic variable via the API (for outbound calls) or inbound webhook, calculate the day of the week in your backend and pass it as a separate dynamic variable:
Copy code
json
{
  "appointment_date": "03/09/2026",
  "appointment_day": "Monday"
}
Option 2: Use a Custom Function Create a custom function that calls an external API or your own endpoint to calculate the day of the week from the date. The agent can then call this function during the conversation and use the response. [(2) ]() Option 3: Rely on the LLM's reasoning Since the underlying LLM has general knowledge, you can instruct it in your prompt to determine the day of the week from a given date. However, LLMs can sometimes make errors with date calculations, so this approach is less reliable than pre-calculating. The most reliable approach is **Option 1**—calculate the day of the week in your backend before the call and pass it as an additional dynamic 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) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.