Why the date formatting doesnt work ( it shows an error )
0
When I create a new object in a microflow, the date attribute should contain current date formatted as MonthYear (MMYYYY). I tried to use this expression, but it shows an error “contact administrator”. Why it’s not working and how can I fix it? parseDateTime(toString([%CurrentDateTime%]),'MMyyyy')
asked
Maxim Velichkin
1 answers
0
Hello,
You can create a String variable and try this expression formatDateTime([%CurrentDateTime%],'ddMMyyyy')
And then now convert the above String to DateAndTime : parseDateTime($PassStringVariable, 'MMyyyy')