Vapi doesnt know ISO date_time format for some rea...
# prompt-tip
f
Hey! I can help with this. The issue is likely that Vapi's AI is interpreting/formatting dates naturally in conversation, but you need it to send a specific format (like ISO 8601) in the actual API payload. Quick question: Are you using function calling/tools to capture the date, or is it pulling the date from the conversation transcript? And what format are you expecting vs. what are you getting?
b
So i'm expecting anything like : 2025-11-11T10:00:00 (November 11, 2025 at 10:00 AM) and what i'm actually getting is just literal string {preferred_time} , just the place holder text
It pulling the date from the conversation transcript
f
The issue is that {preferred_time} is just a placeholder - Vapi isn't actually extracting the date from the conversation. Fix: Set up a proper function parameter in your tool to capture the date/time value, with clear formatting instructions (ISO 8601). I can help you configure this properly if you want feel free to message me and we can get it sorted quickly! 👍
r
Please insert this code snippet anywhere into your assistant prompt to provide correct date and times. Modify the timezone as needed:
Copy code
The current date and time is {{"now" | date: "%A, %B %d, %Y, %I:%M %p", "America/Los_Angeles"}}

Do not use startTime and endTimes that are older than {{ "now" | date: "%s" | times: 1000 | tz: "America/Los_Angeles" }}
More information on this can be found on the documentation:
b
Thanks a lot Kyle