Date formatting issue
# support
v
Today is the 9th of november, and I am telling the AI agent that I would like to book for tomorrow at 10am and it is returning this ISO format to my make.com where the month is going up by one like "2025-09-12T10:00:00". It is creating trouble in my appointment booking and checking on google calendar.
c
Hi there, Thank you for your message. Our team is currently out of the office. We operate Monday through Friday, from 9:00 AM to 8:00 PM Pacific Standard Time (PST). We’ll get back to you as soon as possible during our normal business hours. If your message is urgent, please mark it accordingly or include “URGENT” in the subject line, and we’ll do our best to respond promptly. Warm regards, Vapi Customer Support Team
v
Thank you for describing the issue. To help diagnose the date formatting problem, could you please share the exact input you are providing to the AI agent and the full ISO date string it returns (for example, "2025-09-12T10:00:00")? This will help identify where the month increment might be occurring. Sources: - [Google Calendar Integration Best Practices](https://docs.vapi.ai/assistants/tools/google-calendar) - [Debugging Voice Agents](https://docs.vapi.ai/debugging)
v
@Vapi Support Bot This is what I said to the AI agent, what it returns as the proposed_time_slot is "Setmeeting - proposed time slot 2025-09-12T10:00:00" https://cdn.discordapp.com/attachments/1436964330586247218/1436965188082602027/Screenshot_2025-11-09_172540.png?ex=6911859e&is=6910341e&hm=b5dbed4d06d750e7efe89dda20b8da7022e15d0291740f62ff0961f9120ecbdf&
v
To fix the date formatting issue, update your assistant's prompt or tool configuration to use explicit timezone-aware formatting with LiquidJS. For example:
Copy code
{{"now" | date: "%Y-%m-%dT%H:%M:%S", "America/Los_Angeles"}}
This ensures the date is generated in the correct ISO format and timezone, preventing month or time mismatches when booking appointments. Adjust the timezone string as needed for your use case. For more details, see the [dynamic variables documentation](https://docs.vapi.ai/assistants/dynamic-variables). Source: - [Dynamic Variables Documentation](https://docs.vapi.ai/assistants/dynamic-variables)
v
@Vapi Support Bot Is there any less complicated methods, I don't know how to do this
v
You can use Vapi's default date variables for a simpler approach—no LiquidJS needed. For example, in your prompt or tool configuration, just use:
Copy code
{{date}}T10:00:00
This will automatically insert the current date in the correct format (e.g.,
2025-11-10T10:00:00
for tomorrow at 10am if you increment the day). This method is easy to set up and avoids complex formatting steps. For more details, see the [dynamic variables documentation](https://docs.vapi.ai/assistants/dynamic-variables). Source: - [Dynamic Variables Documentation](https://docs.vapi.ai/assistants/dynamic-variables)
v
To keep your date formatting simple in Make.com, use the following in your Vapi prompt or tool configuration:
Copy code
{{date}}T10:00:00
This will automatically insert today's date in ISO format with the time set to 10:00 AM (e.g.,
2025-11-10T10:00:00
). No extra formatting or functions are needed—just increment the day for "tomorrow" as required. For more details, see the [dynamic variables documentation](https://docs.vapi.ai/assistants/dynamic-variables). Source: - [Dynamic Variables Documentation](https://docs.vapi.ai/assistants/dynamic-variables)
c
Hi versin, Please let me know how I can assist you today.
2 Views