There are 2 ways to get the time. The GetCurrentDateTimeUtc() expression returns the current datetime in UTC. Architect also has a built-in variable Flow.StartDateTimeUtc; this returns the datetime in UTC when the flow started. The difference is Flow.StartDateTimeUtc is the same during the entire call, whereas GetCurrentDateTimeUtc() will change as the call continues. You need to decide which value you want.
The ToString expression can write out a datetime, but the format it uses is "yyyy-mm-ddThh:mm:ss.000Z". Since that doesn't match the format you want, you will need to use the Day, Month, and Year expressions to write your own string value. For this example I use a datetime variable Task.dateTimeVar, you will set it as either of the values in the paragraph above.
Create a string variable Task.day with this value:
If(Day(Task.dateTimeVar) < 10, "0"+ToString(Day(Task.dateTimeVar)), ToString(Day(Task.dateTimeVar)))
Create a string variable Task.month with this value:
If(Month(Task.dateTimeVar) < 10, "0"+ToString(Month(Task.dateTimeVar)), ToString(Month(Task.dateTimeVar)))
Create a string variable Task.year with this value:
ToString(Year(Task.dateTimeVar))
Create a string variable Task.dateString with this value:
Append(Task.day, "-", Task.month, "-", Task.year)
------------------------------
Melissa Bailey
Genesys - Employees
------------------------------