web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Format SharePoint Date...
Power Automate
Unanswered

Format SharePoint DateTime column in Power Automate

(0) ShareShare
ReportReport
Posted on by 1,115

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.

Categories:
I have the same question (0)
  • Verified answer
    Krishna92 Profile Picture
    Microsoft Employee on at

    @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.

  • rameshmukka Profile Picture
    1,115 on at

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

  • kinghnvn Profile Picture
    on at

    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.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard