Hi guys,
I am extracting calendar events but want to change the default output for time (which is UTC and in long format)
item()?['start']
This is the output of the select action:
I would like to extract the start time in AEDT and also only hh:mm
I was looking at things like:
convertTimeZone(triggerBody()?['body/value/start'],'UTC','Australian Eastern Daylight Time','HH:mm')
convertFromUtc(outputs('Events')?['body/value/start']),'Australian Eastern Daylight Time','HH:mm')
But not getting anywhere.
Thanks,
David
Solved! Go to Solution.
Assuming you're trying to do this conversion within the Select, try the expressions below. I'm presuming the second one should get what you're after, but worth trying both.
convertTimeZone(item()?['start'], 'UTC', 'E. Australia Standard Time', 'HH:mm')
//OR
convertTimeZone(item()?['start/DateTime'], 'UTC', 'E. Australia Standard Time', 'HH:mm')
Assuming you're trying to do this conversion within the Select, try the expressions below. I'm presuming the second one should get what you're after, but worth trying both.
convertTimeZone(item()?['start'], 'UTC', 'E. Australia Standard Time', 'HH:mm')
//OR
convertTimeZone(item()?['start/DateTime'], 'UTC', 'E. Australia Standard Time', 'HH:mm')
perfect - thank you