cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
da1ve
Helper IV
Helper IV

Convert time from select action

Hi guys,

I am extracting calendar events but want to change the default output for time (which is UTC and in long format)

 

da1ve_1-1669933422734.png

item()?['start']

 

This is the output of the select action:

da1ve_0-1669933338568.png

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

1 ACCEPTED SOLUTION

Accepted Solutions
grantjenkins
Community Champion
Community Champion

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')

 



----------------------------------------------------------------------

If I've answered your question, please mark the post as Solved.

If you like my response, please consider giving it a Thumbs Up.

View solution in original post

2 REPLIES 2
grantjenkins
Community Champion
Community Champion

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')

 



----------------------------------------------------------------------

If I've answered your question, please mark the post as Solved.

If you like my response, please consider giving it a Thumbs Up.

perfect - thank you

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (2,925)