cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
David_Nguyen_vn
Frequent Visitor

Display datetime-local value in flow email action

Hello guys,

 

I have input value from html<input type="datetime-local>

example  2022-09-03T15:43+07:00

After saving it to dataverse, it is converted to UTC timezone. Now I need to display it to local user in format 

9/3/2022 3:43 PM or

3 Sep 2022 3:43 PM

I tried to use convertfromUTC expresstion and ConvertTimeZone  action but it requires destination to be text not UTC+7:00 format. I do not want to select it manually as user might come from other timezones.

 

Thinking of using addHour expression but it requires interval to be integer. How if the user is in timezone with +5:30 ?

 

Hope any solution for displaying the datetime-local value in format:

9/3/2022 3:43 PM or

3 Sep 2022 3:43 PM

 

Thank you

1 ACCEPTED SOLUTION

Accepted Solutions
v-bofeng-msft
Community Support
Community Support

Hi @David_Nguyen_vn ,

 

Thinking of using addHour expression but it requires interval to be integer. How if the user is in timezone with +5:30 ?

You could use addMinutes instead.

 

Best Reagrds,

Bof

View solution in original post

2 REPLIES 2
Srini84
Helper II
Helper II

Hi @David_Nguyen_vn 

 

Try as below

 

formatDateTime(utcNow(),'MM/dd/yyyy H:mm tt')

 

Thanks,

Srini

v-bofeng-msft
Community Support
Community Support

Hi @David_Nguyen_vn ,

 

Thinking of using addHour expression but it requires interval to be integer. How if the user is in timezone with +5:30 ?

You could use addMinutes instead.

 

Best Reagrds,

Bof

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.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (5,934)