Skip to main content

Notifications

Power Automate - General Discussion
Answered

Format SharePoint DateTime column in Power Automate

(0) ShareShare
ReportReport
Posted on by 1,085

I have a flow where am trying to format SharePoint DateTime column "Schedule" into below format.

 

Tuesday, 23 June 2020 3:00 PM

 

So I have used the expression formatDateTime(triggerBody()?['Schedule'], 'dddd, dd MMMM yyyy HH:mm tt') which is giving me 

 

Tuesday, 23 June 2020 09:30 AM. I understood it is sending me UTC time but I require in IST which would be 3:00 PM.

 

So I changed my expression to convertFromUtc(triggerBody()?['Schedule'], 'India Standard Time, 'dddd, dd MMMM yyyy HH:mm tt'') which is giving me the result Tuesday, 23 June 2020 15:00 PM. But here I want 3:00 PM not 15:00 PM. How should my expression look like to get Tuesday, 23 June 2020 3:00 PM.

  • kinghnvn Profile Picture
    kinghnvn on at
    Re: Format SharePoint DateTime column in Power Automate

    I tried your code:

    convertFromUtc(triggerBody()?['Schedule'], 'India Standard Time, 'dddd, dd MMMM yyyy hh:mm tt'')

     

    but it shows below message, pls advise.

    The expression is invalid.

  • rameshmukka Profile Picture
    rameshmukka 1,085 on at
    Re: Format SharePoint DateTime column in Power Automate

    @Krishna92  Thank you so much. This is now working.

  • Verified answer
    Krishna92 Profile Picture
    Krishna92 on at
    Re: Format SharePoint DateTime column in Power Automate

    @RameshMukka 

     

    Please change the expression as below

     

    convertFromUtc(triggerBody()?['Schedule'], 'India Standard Time, 'dddd, dd MMMM yyyy hh:mm tt'')

     

    This will give you time in 12 hour format

     

    If this information helps you with resolution, please consider giving a thumbs up and mark the solution as resolved.

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,422

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,711

Leaderboard