Skip to main content

Notifications

Power Automate - General Discussion
Answered

How to set time portion of datetime value to 12PM?

(0) ShareShare
ReportReport
Posted on by 166

I have a data source which has a column of dates which all have times of 12AM. How can I manipulate that time to be 12PM?

  • Verified answer
    mahoneypat Profile Picture
    mahoneypat 1,720 on at
    Re: How to set time portion of datetime value to 12PM?

    Here is one way to do it with the addHours function.  Replace the red part with your datetime value.

     

    addHours(outputs('Compose'),12)

     

    Pat

  • Ellis Karim Profile Picture
    Ellis Karim 10,529 on at
    Re: How to set time portion of datetime value to 12PM?

    I am not sure I have understood your questions. It seems like that the time your are getting is for another time-zone?

    You can convert your time to the correct time-zone using the Convert time zone action:

    ekarim2020_5-1630624868906.png

    The resulting output is, converted time, is:

    ekarim2020_6-1630624893586.png

    Ellis

     

     


     

     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,445

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,741

Leaderboard