Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Display datetime-local value in flow email action

(0) ShareShare
ReportReport
Posted on by 2

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

  • Verified answer
    v-bofeng-msft Profile Picture
    on at
    Re: Display datetime-local value in flow email action

    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

  • SriniK Profile Picture
    3,025 Super User 2025 Season 1 on at
    Re: Display datetime-local value in flow email action

    Hi @David_Nguyen_vn 

     

    Try as below

     

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

     

    Thanks,

    Srini

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow