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 utcNow(...
Power Automate
Unanswered

How to convert utcNow() to different time zone?

(0) ShareShare
ReportReport
Posted on by

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!

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

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