Quick Conversion From UTC To IST

Introduction

In Power Automate, functions place an important role for conversions, to quickly see how to Convert UTC Time to IST Time we use Instant Cloud flow.

Step 1

Login to the required Power Apps environment using URL make.powerapps.com by providing the user name and password and click on Flows on the left-hand side as shown in the below figure.

Quick Conversion from UTC To IST

Step 2

After step 1, click on New Flow and then select Instant Cloud Flow as shown in the below figure.

Quick Conversion from UTC To IST

Step 3

After step 2, a new popup will be shown with the title Build an instant cloud flow in that popup to the right side various triggers are shown, select Manually trigger a Flow and then click on Create button as shown in the below figure.

Quick Conversion from UTC To IST

Step 4

After step 3, a new screen will be displayed. Provide the name Quick Conversion of UTC to IST and click on the Save button and click on New Step as shown in the below figure.

Quick Conversion from UTC To IST

Step 5

After step 4, a small window with the title Choose an operation will be displayed with a search box. In that search box search for Compose and select Compose Action as shown in the below figure.

Quick Conversion from UTC To IST

Step 6

After Step 5, Action Compose will be shown with Input’s text box, select that text box, and a related window will be shown on the right-hand side- with 2 tabs, Dynamic Content, and Expression. Select Expression Tab and in fx textbox provide expression.

 utcNow() 

and click on OK  which will show time in UTC Time zone as shown in the below figure.

Quick Conversion from UTC To IST

Step 7

After step 6, add another action, Compose and in Inputs of this new compose give name as “IST Time” and provide the expression,

convertFromUtc(utcNow(), 'India Standard Time')

The function covertFromUtc has 2 parameters. The first parameter provides current UTC Time and the 2nd parameter provides the string 'India Standard Time' required for the final result time zone. Click on OK as shown in the below figure. To remove confusion renamed compose action present in Step 6 to UTC Time and click on Save.

Quick Conversion from UTC To IST

Step 8

After step 7, to test this flow click on the Test button at the top of the screen, if the flow is fine then we should see the next screen as shown in the below figure:

Quick Conversion from UTC To IST

Step 9

After step 8,  a small window opens up. Select the Manual option and click on the Test button as shown in the below figure,

Quick Conversion from UTC To IST

Step 10

After step 9,  another window appears with text Run flow and click on Run flow Button as shown in the below figure,

Quick Conversion from UTC To IST

Step 11

After step 10,  flow run has started successfully. Click on DoneButton as shown in the below figure,

Quick Conversion from UTC To IST

Step 12

After step 11, the window gets refreshed and you could see all the actions have run successfully with a green tick mark as shown in the below figure,

Quick Conversion from UTC To IST

Step 13

After step 12,  to test whether the values are changed to IST Time zone from UTC, open the actions and see the timestamps which infer conversion happened successfully as shown in the below figure,

Quick Conversion from UTC To IST

Note

  1. Please make sure to save the flow for every operation.
  2. After expressions are given make sure to click either on OK or Update and see whether the value appears as expected in the input box.
  3. In case of any errors flow checker will provide you the list of errors which is a button beside the Run button.
  4. Refer to the time zone Id’s in this example we used “Indian Standard Time” if you want to use others then refer to the Microsoft documentation

Conclusion

In this way, one can easily test Power Automate Functions using Instant cloud flow and manually trigger a flow within minutes.


Similar Articles