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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to convert utcNow(...
Power Automate
Answered

How to convert utcNow() to different time zone?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi everyone,

 

I'm trying to include the date and time in the filename of an Excel file, created through a flow. I need the time to be converted to the Japan time zone, so my code looks like this:

formatDateTime(convertTimeZone(utcNow(), 'UTC', 'JST'),'yyyyMMddhhmm')

 

However, this outputs an error saying that the value 'JST' is incorrect (see attachment). I also tried to replace it by 'Japan Standard Time' but the result in the same. I followed an example where it was using 'Eastern Standard Time' and that worked. So I'm wondering what's the exact syntax for the Japan time, does anyone know? 

 

Thanks a lot!

errorflow.PNG
Categories:
I have the same question (0)
  • Verified answer
    grantjenkins Profile Picture
    11,063 Moderator on at

    You can use the Convert time zone action to see the list of time zones you have available. Once you've set that up you can go into Peek code to see what it generates.

     

    grantjenkins_0-1681456519327.png

     

    grantjenkins_1-1681456557513.png

     

    grantjenkins_2-1681456580191.png

     

    {
     "kind": "ConvertTimeZone",
     "inputs": {
     "baseTime": "@{utcNow()}",
     "formatString": "yyyyMMddhhmm",
     "sourceTimeZone": "UTC",
     "destinationTimeZone": "Tokyo Standard Time"
     }
    }

     

    So, for your example you should be able to do the following:

     

    convertTimeZone(utcNow(), 'UTC', 'Tokyo Standard Time', 'yyyyMMddhhmm')
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hey Grant,


    Thanks a lot for your quick reply! I finally understand how to find the String values to pass as the destinationTime now. I tried with your suggestion and my filename displays the correct time.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 523

#2
Valantis Profile Picture

Valantis 318

#3
David_MA Profile Picture

David_MA 235 Super User 2026 Season 1

Last 30 days Overall leaderboard