Passing variables in dateTime fucntion?

0
I have an attribute A of type DateAndTime and instead of passing dateTime(2019,10,31) can I pass a variable in it? eg i make new variables in microflow called Var1 and Var2 and I want to pass it in dateTime function like dateTime($Var1, $Var2, 01). is this possible? I want to set the value of attribute A as this.
asked
1 answers
1

No, DateTime() only takes numbers, see this doc.

But you can use parseDateTime(), where yourvar is a string matching the pattern of the second parameter. See this doc

parseDateTime($yourvar, 'yyyy-MM-dd')

 

answered