Hi all
I am struggling with this ...
I receive a string in different formats from a PowerApp that is coming from a DatePicker.
Altough I have set in the Function FlowName.Run(...) that all dates should be in the DateTime.ShortDate format (from PowerApps) it arrives in different formats in my Flow.
The formats i receive are:
- April 17, 2019
- 17-4-2019
- 4-17-2019
This doesn't make sense for me as I pass this value in a Function =>
Text(DateTimeControlName.SelectedDate,DateTimeFormat.ShortDate)
But still I receive different formats in Flow (shown above).
I am trying to convert them all regardless of how they come in, into the MM-dd-yyyy format but i fail each time.
I tried the formatDateTime() function and the Convert to timezon action in Flow but each time i get
Unable to process template language expressions for action X at line '1' and column '2554': 'In function 'converttimezone', the value provided for date time string '18-4-2019' was not valid. The datetime string must match ISO 8601 format.'.
What am I overseeing here?