# Date & Time Error

**URL:** <https://community.make.com/t/date-time-error/85500>\
**Category:** Beginner Questions\
**Tags:** format-date, date-time-functions\
**Created:** [June 23, 2025, 11:32pm UTC](https://community.make.com/t/date-time-error/85500 "2025-06-23T23:32:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matt\_Ramoundos](https://avatars.discourse-cdn.com/v4/letter/m/b782af/32.png) [@Matt\_Ramoundos](https://community.make.com/u/Matt_Ramoundos)\
**Post date:** [June 23, 2025, 11:32pm UTC](https://community.make.com/t/date-time-error/85500/1 "2025-06-23T23:32:35Z")

</div>

Hi there -

I’m new to all of this. After spending hours trying to figure out the correct formatting, I am trying here before I give up.

The following code is successful:

{  
“query”: {  
“filter”: {  
“location\_ids”: [  
“{{2.id}}”  
],  
“start”: {  
“start\_at”: “2025-06-23T05:00:00-07:00”,  
“end\_at”: “2025-06-23T15:00:00-07:00”  
}  
}  
}  
}

However, when I try to replace the date time values in start\_at or end\_at to set them to today at 00:00:00 -7:00 and 23:59:59 -7:00 respectively, I get an error, without fail, every time. I’ve tried at least 100 iterations, using Make AI, Gemini, ChatGPT – I can not for the life of me figure out how to properly format this field. What am I doing wrong? Why won’t {{formatDate(now; “YYYY-MM-DD 00:00:00-07:00”)}} or setSeconds(setMinutes(setHours(parseDate(formatDate(now; “YYYY-MM-DD”; “America/Los\_Angeles”); “YYYY-MM-DD”; “America/Los\_Angeles”); 23); 59); 59), or anything else work?

---

<div class="post-metadata">

**Author:** ![Jonathan\_Quarics](https://avatars.discourse-cdn.com/v4/letter/j/f6c823/32.png) [@Jonathan\_Quarics](https://community.make.com/u/Jonathan_Quarics)\
**Post date:** [June 24, 2025, 12:11am UTC](https://community.make.com/t/date-time-error/85500/2 "2025-06-24T00:11:01Z")

</div>

Hi [Matt\_Ramoundos](https://community.make.com/u/Matt_Ramoundos), You have most likely a format error, try this one `{{formatDate(parseDate(setSecond(setMinute(setHour(now; 23); 59); 59); "YYYY-MM-DD hh:mm:ssZ"; "America/Los_Angeles"); "YYYY-MM-DD hh:mm:ssZ"; "America/Los_Angeles")}}`

---

<div class="post-metadata">

**Author:** ![Matt\_Ramoundos](https://avatars.discourse-cdn.com/v4/letter/m/b782af/32.png) [@Matt\_Ramoundos](https://community.make.com/u/Matt_Ramoundos)\
**Post date:** [June 24, 2025, 12:30am UTC](https://community.make.com/t/date-time-error/85500/3 "2025-06-24T00:30:31Z")

</div>

> [@Jonathan\_Quarics](#):
>
> {{formatDate(parseDate(setSecond(setMinute(setHour(now; 23); 59); 59); “YYYY-MM-DD hh:mm:ssZ”; “America/Los\_Angeles”); “YYYY-MM-DD hh:mm:ssZ”; “America/Los\_Angeles”)}}

Sincerely appreciate the reply @Jonathan_Quarics. I believe I tried with parseDate as well. Still not clicking.

Error: 400 Bad Request

- {“errors”:[{“code”:“INVALID\_VALUE”,“detail”:“Invalid timestamp (RFC 3339 format expected).”,“field”:“query.filter.start.start\_at”,“category”:“INVALID\_REQUEST\_ERROR”}]}

---

<div class="post-metadata">

**Author:** ![Jonathan\_Quarics](https://avatars.discourse-cdn.com/v4/letter/j/f6c823/32.png) [@Jonathan\_Quarics](https://community.make.com/u/Jonathan_Quarics)\
**Post date:** [June 24, 2025, 12:36am UTC](https://community.make.com/t/date-time-error/85500/4 "2025-06-24T00:36:51Z")

</div>

> [@Jonathan\_Quarics](#):
>
> {{formatDate(parseDate(setSecond(setMinute(setHour(now; 23); 59); 59); “YYYY-MM-DD hh:mm:ssZ”; “America/Los\_Angeles”); “YYYY-MM-DD hh:mm:ssZ”; “America/Los\_Angeles”)}}

Is asking you for a date with the **RFC 3339** format.  
This is the same but with the **T** added.

`{{formatDate(parseDate(setSecond(setMinute(setHour(now; 23); 59); 59); "YYYY-MM-DDThh:mm:ssZ"; "America/Los_Angeles"); "YYYY-MM-DDThh:mm:ssZ"; "America/Los_Angeles")}}`

---

<div class="post-metadata">

**Author:** ![Probotic\_Solutions](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/probotic_solutions/32/73347_2.png) [@Probotic\_Solutions](https://community.make.com/u/Probotic_Solutions)\
**Post date:** [June 24, 2025, 4:20am UTC](https://community.make.com/t/date-time-error/85500/5 "2025-06-24T04:20:33Z")

</div>

Hi @Matt_Ramoundos,

Please try using the following formula:

start date:

> {{formatDate(parseDate(now; “YYYY-MM-DDThh:mm:ss”); “YYYY-MM-DDT00:00:00”)}}-07:00

end date:

> {{formatDate(parseDate(now; “YYYY-MM-DDThh:mm:ss”); “YYYY-MM-DDT23:59:59”)}}-07:00

I’ve attached a screenshot for reference.  
If this helps, kindly mark it as a solution 👍

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/4/0/403f5a63635936b8d5df7f95a695c6a819bde87a.png)  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/5/4/549296a0de0f308417ae2a7400c8e0dad9d39a05.png)

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [September 22, 2025, 4:27am UTC](https://community.make.com/t/date-time-error/85500/6 "2025-09-22T04:27:03Z")

</div>

This topic was automatically closed because it's resolved or inactive. Please, start a new topic.


