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 / How to Convert Time Zo...
Power Automate
Unanswered

How to Convert Time Zone in "Create a daily summary of Planner Tasks by Bucket"

(0) ShareShare
ReportReport
Posted on by 9

How do I change the time zone from UTC to CST when I'm in the template "Create a daily summary of Planner Tasks by Bucket"? On the daily report, I want it to show the time that it was complete and this is the current formula I'm using to do that:

 

if(empty(items('Iterate_through_tasks')?['completedDateTime']),'',formatdatetime(items('Iterate_through_tasks')?['completedDateTime'],'MM/dd/yyyy'))

 

This is mostly what I need but I need it to be in CST and it is currently showing as UTC. How would I go about doing this? I've tried a few different things but keep getting error messages. 

 

I know there is a way to convertFromUtc but I cannot figure out where in the formula above that it would go.

Categories:
I have the same question (0)
  • Ellis Karim Profile Picture
    11,681 Super User 2025 Season 2 on at

    You can use the Convert time zone action, such as:

    2021-10-27_16-57-03.png

    This is the example output:

    2021-10-27_16-57-41.png

    You can customize the output format of the date to your needs:

     

    2021-10-27_17-05-54.gif

    The equivalent expressions would be:

    convertFromUtc(utcNow(),'Central Standard Time', 'MM/dd/yyyy')


    Ellis


    ____________________________________
    If I have answered your question, please mark the post as Solved.
    If you like my response, please give it a Thumbs Up.

  • devon_birch Profile Picture
    9 on at

    This is closer! How do I get the converted time into my HTML table? I've tried inserting it into the "From" spot but that didn't work. 

    devon_birch_0-1635350993603.png

     

  • Ellis Karim Profile Picture
    11,681 Super User 2025 Season 2 on at

    The output of the converted time can be used via dynamic content:

    2021-10-27_17-23-51.png

    I didn't understand the question. You may need to share the screenshots of the flow and the format of the data in the Task variable.

     

    You could use the Select action to select the fields for the HTML table, perhaps even change the names of the columns, add the date fields using the output from the convert time zone (or even use an expression):

     

    2021-10-27_17-30-48.png

     

     

    convertFromUtc(utcNow(),'Central Standard Time', 'MM/dd/yyyy')

     

     


    Ellis
    ____________________________________
    If I have answered your question, please mark the post as Solved.
    If you like my response, please give it a Thumbs Up.

  • devon_birch Profile Picture
    9 on at

    Going back to the convert time zone, I want the time to be the time that they marked the task complete, not "utcNow()." 

    Say the task was marked complete at 12:15pm CST. When I test run my report, it shows the time that I run the report as the completed time rather than the time it was marked. 

  • Ellis Karim Profile Picture
    11,681 Super User 2025 Season 2 on at

    Here is a demo flow that uses the List tasks action to get some task data (I'm not a Planner user!).

    The Select action then (very quickly) iterates through each task item: if there is no CompletedDateTime field for the task, return null (empty), else convert the CompletedDateTime to CST time and return the date in the format MM/dd/yyyy hh:mm:

    2021-10-27_20-41-22.png

    This is the expression that is used in the Select action:

    if(empty(item()?['CompletedDateTime']),null, convertFromUtc(item()?['CompletedDateTime'],'Central Standard Time','MM/dd/yyyy hh:mm'))

    2021-10-27_20-47-16.png

    Hope this helps.


    Ellis
    ____________________________________
    If I have answered your question, please mark the post as Solved.
    If you like my response, please give it a Thumbs Up.

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard