cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
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
Highlighted
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

Highlighted

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

Highlighted

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

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

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (8,521)