I'm trying to update Date field by Custom API output but it's not working | Community
Skip to main content
sethuanand2626
Level 3
January 2, 2024
Solved

I'm trying to update Date field by Custom API output but it's not working

  • January 2, 2024
  • 1 reply
  • 892 views

I'm trying to update Date field by Custom API output but it's not working.

 

Date format is 22 Dec 2023 12:02

 

Getting Invalid Date format wile updating.

 

Attached screenshot for reference.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by lgaertner

I guess that you will need to parse your date string before:

 

parseDate(<dateValue>; "DD MMM YYYY HH:mm")

 

Regards

Lars

1 reply

lgaertner
Level 9
January 2, 2024

Hi,

 

You have to provide the date in ISO 8601 format, so it should look like this:

YYYY-MM-DDTHH:mm:ss.sssZ 2023-12-22T12:02:00.000Z

 

Regards

Lars

sethuanand2626
Level 3
January 2, 2024

Thanks for your reply Lars.

 

The Output you mentioned were provided by Custom API module.

 

I already attached the screenshot.

 

How to convert to date format?

lgaertner
lgaertnerAccepted solution
Level 9
January 2, 2024

I guess that you will need to parse your date string before:

 

parseDate(<dateValue>; "DD MMM YYYY HH:mm")

 

Regards

Lars