Using conditions as a Flow Action input - date format issue

erik_gunther
Tera Contributor

I tried using the Conditions type as an input into a Flow Action. The Conditions type builds an encoded query, but the problem is that the date formats are wrong. The format is MM/DD/YYYY instead of YYYY-MM-DD.

 

Has anyone experienced this issue? I tried attaching a screenshot but I'm getting an error.

1 REPLY 1

Vaibhav_Nikam
Tera Guru

Hello @erik_gunther ,

Can you try using the below script :

var dt = fd_data._1__get_catalog_variables.variable_name;

 

var gd = new GlideDate();

gd.setValue(dt);

return gd.getByFormat('YYYY-MM-DD');


If my response finds helpful, please indicate its helpfulness by selecting Accept as Solution and Helpful.

Thanks,

Vaibhav Nikam