cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Vincebk
Helper I
Helper I

Excel Showing Wrong DateTime Format

So I was having trouble with the submission time of my form showing the wrong time (4 hours off). I added the addHours function to my flow and it's showing the correct time now but the format is completely off.

 

addHours(outputs('Compose'),-4,'yyyy-MM-dd HH:mm')
 
Could anyone help? I check the cell's format and selected Custom to show m/d/yyy h:mm and it shows 
2021-05-17T10:58:06.0000000
Snipping.PNG
1 ACCEPTED SOLUTION

Accepted Solutions
v-LilyW-msft
Community Support
Community Support

Hi @Vincebk 

Thank you for posting.

According to your description you selected cell's format as Custom to show m/d/yyy h:mm but it shows wrong DateTime Format. If any misunderstanding, please kindly let me know.

I tried to reproduce your scenario but it works fine for me.

This is my flow:

v-LilyW-msft_0-1621308586938.png

Expression:addHours(outputs('Compose'),-4,'yyyy-MM-dd HH:mm')

v-LilyW-msft_1-1621308586941.png

 

v-LilyW-msft_2-1621308586946.png

Then save Flow and can test it.

 

When a new response is submitted as below

v-LilyW-msft_3-1621308586947.jpeg

A new row will be created as below:

v-LilyW-msft_4-1621308586948.png

The submit time format is Custom m/d/yyy h:mm

v-LilyW-msft_5-1621308586951.png

 

Hope the content above may help you.

Best Regards

Lily

View solution in original post

2 REPLIES 2
v-LilyW-msft
Community Support
Community Support

Hi @Vincebk 

Thank you for posting.

According to your description you selected cell's format as Custom to show m/d/yyy h:mm but it shows wrong DateTime Format. If any misunderstanding, please kindly let me know.

I tried to reproduce your scenario but it works fine for me.

This is my flow:

v-LilyW-msft_0-1621308586938.png

Expression:addHours(outputs('Compose'),-4,'yyyy-MM-dd HH:mm')

v-LilyW-msft_1-1621308586941.png

 

v-LilyW-msft_2-1621308586946.png

Then save Flow and can test it.

 

When a new response is submitted as below

v-LilyW-msft_3-1621308586947.jpeg

A new row will be created as below:

v-LilyW-msft_4-1621308586948.png

The submit time format is Custom m/d/yyy h:mm

v-LilyW-msft_5-1621308586951.png

 

Hope the content above may help you.

Best Regards

Lily

Vincebk
Helper I
Helper I

Wow, you are the best! Thank you for that. Could I bother you with another problem if you don't mind?

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Users online (1,794)