Date to string transform in flow designer

marclindsay
Tera Guru

I have a sub-flow input variable that is a Date.

marclindsay_2-1740455233710.png

Need to convert this to a string in the format yyyy/MM/dd.

Using the "Date to String" transform to pass this to an Action. 

marclindsay_0-1740454985917.png

 

Keeps the date in the format MM/dd/yyyy. Does not change the format. 

marclindsay_1-1740455052709.png

 

Also noticed this comment in the logs:

2025-02-25 03:37:36 .....Warning.....DATE_TO_STRING with name com.glide.transform.adapter.DateToStringAdapterRule: Failed to parse input: Unparseable date: "02/24/2025"

 

I am also using the Key Value Map transform and that works perfectly fine. Not sure why the Date to String transform will not work. 

 

 

6 REPLIES 6

@marclindsay 

I am unable to see that option to convert Date to String.

Can you share how did you add that?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Ankur Bawiskar
Tera Patron
Tera Patron

@marclindsay 

check if this helps

Error in Flow using date to string transform function 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader