https://retellai.com/?utm_source=discord&utm_medium=seo logo
I want to get the current date dynamically what is...
# ❓・ai-evy-support
a
Thanks for tagging me @gk. I'll look through relevant sources and get back to you shortly.
### Answer To get the current date dynamically in Retell AI, use the system variable
{{current_time}}
[(1) ]() . This variable provides the current time in
America/Los_Angeles
timezone by default . Format:
Copy code
{{current_time}}
Example output: "Thursday, March 28, 2024 at 11:46:04 PM PST" For specific timezones: You can specify a timezone using the format
{{current_time_[timezone]}}
. For example:
Copy code
{{current_time_Australia/Sydney}}
Usage in prompts: You can reference this in your agent's prompt like:
Copy code
Current time is {{current_time}}
Important note: The
{{current_time}}
variable defaults to PST (America/Los_Angeles timezone) [(1) ]() [(2) ]() . If you need a different timezone, use the
{{current_time_[timezone]}}
format with your specific timezone [(1) ]() . Alternative for more control: If you need more precise timezone handling, you can create a custom dynamic variable by returning the current time from a Code Node or webhook, which allows you to handle timezone conversions in your own code [(2) ]() .
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[2] Discord message from @nocodecreative.io on 2024-12-15](https://discord.com/channels/1186424376300679209/1186462578310910112/1317840635717222432) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.