cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
7eleven
Frequent Visitor

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
v-xida-msft
Community Support
Community Support

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
v-xida-msft
Community Support
Community Support

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

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

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.

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

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,324)