Incorrect date
# support
f
Hi @Vapi team, Our assistant is not matching the Day with the correct date. We have included the Date recognition prompt below which works perfectly for other Assistants but for some reason, this assistant is not registering the right day with date. The current date and time is: {{"now" | date: "%b %d, %Y, %I:%M %p", "Australia/Brisbane"}} Today is {{"now" | date: "%A", "Australia/Brisbane"}} and the current time is {{"now" | date: "%I:%M %p", "Australia/Brisbane"}} Call ID: 6cdb4812-d51f-42a7-8fc2-2378190c048c Registers "Wednesday" as 2nd May - which is incorrect. It should be Wednesday 30th April. Call ID: 67441f9d-94f3-40d8-909e-e2052b568e97 Registers "Monday" as 29th April which is incorrect. It should be Monday 28th April. Call ID: 00e2e1e2-6421-4824-82a2-393003210460 Registers "Thursday" as 2nd May which is incorrect. It should be Thursday 1st May.
v
Try modifying your date recognition prompt to explicitly include the day of week in the same variable as the date:
Copy code
The current date and time is: {{\"now\" | date: \"%A, %b %d, %Y, %I:%M %p\", \"Australia/Brisbane\"}}
This format ensures the assistant receives the day and date together in a single context, which helps prevent mismatches between the two. Source: - [Discord discussion on date recognition issues](https://discord.com/channels/1211482211119796234/1342347443114872863)
h
Using above code, Vapi is now sending the date entirely with the wrong year. I ask to book "tomorrow night" which should translate to 2025-04-29 however system sends \"dateOfBooking\": \"2023-10-25\"
s
ccing: @Kings_big💫
k
Vapi date mismatches happen due to time zone inconsistencies, parsing issues, or unclear prompts, so ensure all platforms use the same time zone, improve prompt clarity like "Today is {{ "now" | date: "%A, %d %B %Y", "Australia/Brisbane" }}", correctly parse/format dates in Make.com