Giving me error as: {"code":"invalidDateFormat","message":"Invalid date format. Valid date format is
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2025 04:33 AM
Hi,
In pre processing script : I am taking current and past 3 days date and passing it in response body as shown in the SS
-------------------------------------------------
Giving me error as: {"code":"invalidDateFormat","message":"Invalid date format. Valid date format is YYYY-MM-DDThh:mm:ssZ."}
But if i give custom date it is working fine
Can you please help me here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2025 09:47 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2025 10:07 PM
this error is thrown by the REST Step?
If yes then it clearly says the date/time format is not correct.
Did you check the REST Step passed the correct date/time in that expected format?
{"code":"invalidDateFormat","message":"Invalid date format. Valid date format is YYYY-MM-DDThh:mm:ssZ."}
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2025 11:51 PM
Hope you are doing good.
Did my reply answer your question?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader