Have issue on passing date , it always appeared 20...
# support
t
the call id: call_3hWipCtvI1e1lkmP3hy9uMsC The timestamp: Today The response you expected to receive: the date should be fall in 2025. Response that i get instead: i get october 2023. https://cdn.discordapp.com/attachments/1355735302865420519/1355735303276597411/Screenshot_2025-03-30_104050.png?ex=67ea0264&is=67e8b0e4&hm=3f370da461f367be6f1c3cafa4bc460c8a35483cf51ddaaf02ea083783649331&
v
Hi there! I see you're having an issue with date handling in Vapi where it's passing 2023 instead of 2025. I can't determine exactly why this specific call is using 2023 without seeing your full configuration, but I can confirm this is a known issue in Vapi and provide some troubleshooting steps. According to the information I found, there are several known date handling issues in Vapi, including dates defaulting to incorrect years. Specifically, one user reported that "Vapi was taking 2024 as the reference year and not updating even when the current year (2025) was added to the prompt" and another user reported that "the date defaults to 2023 instead of 2025" [source](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1335336931395108895). Here are some troubleshooting steps you can try: 1. Add the current date explicitly in your system prompt. One user fixed a similar issue by "putting a statement at the beginning and switching the model to gpt-4o" [source](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1334271734332784773). Try adding something like:
Copy code
The current date is {{"now" | date: "%A, %B %d, %Y", "America/New_York"}} and the time is {{"now" | date: "%I:%M %p", "America/New_York"}}
2. Use separate variables for date, time, and day in your prompt [source](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1341751641547870281):
Copy code
Current date: {{ "now" | date: "%B %d, %Y", "YourTimezone"}}
   Current time: {{ "now" | date: "%I:%M %p", "YourTimezone"}}
   Day of the week: {{ "now" | date: "%A", "YourTimezone"}}
3. Check your date format to ensure it's compatible with Vapi's expected input. The format
YYYY-MM-DDTHH:MM:SS+HH:MM
is used in some Vapi responses [source](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1330221332452999321).
4. Consider switching to gpt-4o if you're using a different model, as this helped resolve the issue for some users. Would you like me to help with implementing any of these solutions or do you have any other questions about date handling in Vapi? Sources: - [Discord Thread on Date Handling Issues](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1335336931395108895) - [Discord Thread on Date Formatting Solutions](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1334271734332784773) - [Discord Thread on Date Variables](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1341751641547870281) - [Discord Thread on Date Format in Available Slots](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1330221332452999321)
t
yes i already switch to gpt 4o ,but now it showing 2024 instead. still not 2025
@Shubham Bajaj can you help with this issue
a
Hey @thevin11, can you share the call ID? What you've shared is a Tool call ID, which won't help me. Instead, I need the call ID which you can get by visiting the VAPI dashboard, then the Observe section, and finally the log page. In the log page, you will find all of the call IDs. Just share the recent call IDs so I could take a look.
t
okay
This is my call id 0575d484-f7d8-483b-be29-b859d591d9b2
hi anyone can help me?
a
Copy code
tool name: _checkAvailability

response: Accepted
Hey Thevin, You are returning a response name'response' value as accepted instead of you need to return the response in the required format which needs the tool call id as well as the result. The result is supposed to be a string type without any line breaks or new lines. I am dropping the documentation link below which guides you exactly how you are expected to return the result for the tool call.
a
Yes, I am talking about this one only, but you are returning excepted instead
5 Views