Creating Flow's condition with comparing Dates

Hallo. I have a step making rest request via http-connector and getting some variables into response object.


Here Im getting DogDate variable, which is actually has DateTime type. But here we have json type. ok.
Then I need to compare this variable to some const date in a condition flow, to determine the next direction of flow. But cant figure out how to correctly convert It variable into date inside the condition flow expression or script.

Here one of many tries, which doesnt work. I also tried with condition type “Expression” with no result.
I tried something similar with variable of numeric type and It worked.

Problem solved.
Connectors code should be
S(response).prop(“dogDate”).stringValue();

and flow’s condition with type JavaScript
DogDate >= Date.parse(“2021.01.16 00:00:00”)

1 Like