cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
7eleven
Level: Powered On

Convert date time

i try to convert 'Compose 15' and Compose 20'

Capture d’écran 2017-10-29 à 14.51.35.png

Capture d’écran 2017-10-29 à 14.51.49.png

 

to get this format using UTC:

 

 2017-10-30T09:00-00:00

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Convert date time

Hi @7eleven,

 

I have made a test on my side and please take a try with the following workaround:

  • Add a proper trigger, here I use Flow button trigger.
  • Add “Compose” action, Input set to 30/10/2017
  • Add “Compose 2” action, Input set to 10:00.
  • Add “Initialize variable” action, Name set to Date, Type set to Array, Value set to the following formula:

 

split(outputs('Compose'),'/')

 

  • Add “Compose 3” action, Input set to the following formula:
concat(variables('Date')?[2],'-',variables('Date')?[1],'-',variables('Date')?[0],'T',outputs('Compose_2'),'-00:00')

 

Image reference:6.JPG

 

The flow works successfully as below:7.JPG

 

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Community Support Team
Community Support Team

Re: Convert date time

Hi @7eleven,

 

I have made a test on my side and please take a try with the following workaround:

  • Add a proper trigger, here I use Flow button trigger.
  • Add “Compose” action, Input set to 30/10/2017
  • Add “Compose 2” action, Input set to 10:00.
  • Add “Initialize variable” action, Name set to Date, Type set to Array, Value set to the following formula:

 

split(outputs('Compose'),'/')

 

  • Add “Compose 3” action, Input set to the following formula:
concat(variables('Date')?[2],'-',variables('Date')?[1],'-',variables('Date')?[0],'T',outputs('Compose_2'),'-00:00')

 

Image reference:6.JPG

 

The flow works successfully as below:7.JPG

 

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

7eleven
Level: Powered On

Re: Convert date time

Thanks for your answer ! So i have to change to change the time manually ?

Community Support Team
Community Support Team

Re: Convert date time

Hi @7eleven,

 

The value you provided is not a string timestamp, we could not use Date function to convert it in Microsoft Flow currently.

 

More details about Date functions, please check the following document:

Date functions

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
chieffish
Level: Powered On

Re: Convert date time

Thank you so much, I would have been trying to work this out all night if i didnt find your post 🙂

Helpful resources

Announcements
firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors
Users online (4,769)