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

Microsoft Forms flow to Excel returns later date/time

Just as the topic title reads, I setup a flow which adds a row to an existing sheet. Everything seems good to go except that it appears to be returning the data with a time which is 4 hours later as if its transposed to PST from the native EST.

 

Below I've entered an example:

 
Forms Results DataFlow Return Data
3/31/20 19:53:303/31/2020 23:53
3/31/20 20:37:384/1/2020 0:37
3/31/20 20:55:124/1/2020 0:55
3/31/20 21:06:054/1/2020 1:06
3/31/20 22:00:524/1/2020 2:00

 

This is a really straight forward flow, but this is also my first one. Maybe I'm missing something simple.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Hi @RodM ,

 

You could format the date time with expression below:

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

 

If your problem is solved, please go ahead and mark the post as solved by clicking “Accept as Solution” so that this thread will be marked for other users to easily identify!

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
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

14 REPLIES 14
Community Support
Community Support

Hi @RodM ,

 

Could you please share a screenshot of the configuration of your flow?

I'm afraid that it is caused by the time zone difference between your local time and the utc time.

If the returned date would always 4 hours late than the expected date time, could you please take a try to add -4 hours to the date time before insert it to the excel table?

 

Best Regards,

Alice

 

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

https://ibb.co/2ZTb4Nm 

 

There is a link to the flow image.

Capture3.JPG


@v-alzhan-msft wrote:

Hi @RodM ,

 

Could you please share a screenshot of the configuration of your flow?

I'm afraid that it is caused by the time zone difference between your local time and the utc time.

If the returned date would always 4 hours late than the expected date time, could you please take a try to add -4 hours to the date time before insert it to the excel table?

 

Best Regards,

Alice

 

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


How would I add hours to the return time within the flow?

Hi @RodM ,

 

Please refer to screenshot below to create the flow:

1.png

 

Expression in the flow:

addHours(outputs('Compose'),-4)

 

Best regards,

Alice       

 

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

The expression provided caused the flow to fail.

 

Here is another screenshot of my flow:

 Capture4.JPG

 

 

Hi @RodM ,

 

Have you add a Compose action to save the Date time?

Please share the screenshot of the flow when the flow would run fail.

 

Best regards,

Alice       

 

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

Helper I
Helper I

Capture5.JPG

Hi @RodM ,

 

1.png

Please refer to my screenshot and take a try again.

2.png

 

Best regards,

Alice       

 

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

This is now how the data is returned for the same flow:

 

179564/6/2020 13:29
179562020-04-06T09:29:03.0000000

 

The data displayed is a weird format. Any more suggestions on how to get it to show as the top cell?

 

Your help is greatly appreciated so far. Any understanding why any of this is needed in the first place?

Community Support
Community Support

Hi @RodM ,

 

You could format the date time with expression below:

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

 

If your problem is solved, please go ahead and mark the post as solved by clicking “Accept as Solution” so that this thread will be marked for other users to easily identify!

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
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

Thank you for all of your help.

I would appreciate some insight as to why the problem occurs in the first place, but I'm thankful nonetheless.

Continued Contributor
Continued Contributor

@RodM I have the same experience (as I think most users do) with the timezone issue.

 

Many Microsoft apps, tools, and sites default to Pacific time unless otherwise formatted.

 

It isn't very convenient for those of us in any other timezone, but it is reality.

 

thanks,

Kyle

@RodM Microsoft products don't always store data data in the same format. The data in the top cell is in normal Excel date format although it actually stores it as an integer. The cell below it is in Universal Coordinated Time (UTC) format.

Rob
Los Gallardos

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (36,291)