Format Datta Error

Hi, anyone know how to identify the problem and how to solve this, i put the error print, and how its configure.

Error

Failed to map ‘5.value’: Function ‘formatDate’ finished with error! ‘’ is not a valid date.

1 Like

Hi @Leandro_Valente

formatDate() function works over the date of type. like in below image:
image

In your case it is of type. You need to first use parseDate() function over your mappings and then use formatDate() function.

Regards,
Msquare Automation - Platinum Partner of Make
@Msquare_Automation

1 Like

@Msquare_Automation thanks for the feedback.

In my case, the date I am using to format is like this: 2024-11-20.
Do I really need to make a parsedata, and then format it? Or in this case would it be another way?

1 Like

I tried with the parseDate, en get error too. How can fix this?


1 Like

Hi @Leandro_Valente

Please share the output bundle json from the module you are mapping the date.

Regards,
Msquare Automation - Platinum Partner of Make
@Msquare_Automation