Now/Today's date isn't working
# support
v
Try this corrected date format in your prompt:
Copy code
liquid
{{"now" | date: "%b %d, %Y, %I:%M %p", "Australia/Perth"}}
Note: Use
%I
(capital i) for 12-hour format, not
%l
(lowercase L). This should display the current date and time in the Australia/Perth timezone. If it still doesn't work, double-check for typos and ensure you're using double curly braces as shown above. [See documentation for details.](https://docs.vapi.ai/assistants/dynamic-variables#advanced-date-and-time-usage) Source: - [Vapi Dynamic Variables: Advanced date and time usage](https://docs.vapi.ai/assistants/dynamic-variables#advanced-date-and-time-usage)
v
Make sure that the date and time formats in your assistant's prompts are set up correctly. Here's an example configuration:
Copy code
plaintext
# Current Date and Time
- Current date: {{ "now" | date: "%B %d, %Y", "Your/Timezone" }}
- Day of the week: {{ "now" | date: "%A", "Your/Timezone" }}
- Current time: {{ "now" | date: "%I:%M %p", "Your/Timezone" }}
Make sure to replace
"Your/Timezone"
with the correct timezone, such as
"America/New_York"
or
"Australia/Sydney"
, to get accurate results. This setup should help synchronize the date and day correctly. For additional guidance, you can refer to [dynamic variables documentation](https://docs.vapi.ai/assistants/dynamic-variables#advanced-date-and-time-usage).