I have a collection (collectionLastUpdated) that contains a 'dtTime' property with a date-time formatted string value from an API. When I created the API connection in Flow, Flow assigned the value as a date-tme formatted string (not simply a string). I can't figure out how to display the date-time value in a text label. It seems I need to convert the date-time to a string or something but could not find a function to do it. Below is the code I currently have in the label text field (if a date-time value exists then show it, else show the text 'download collection data':
If(CountRows(collectionLastUpdated)=1,
First(collectionLastUpdated).dtTime,
"download collection data")
// sample data
"collectionLastUpdated": {"dtTime":"08/21/2018 13:24:45"}