cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Form to sharepoint to excel date conversion issues

Hi all--

So, I have a Form that takes date inputs, which I'm 99% uses UTC dates.

 

I have a flow that runs whenever that Form is submitted that takes the form inputs and saves them to a Sharepoint list (again, in UTC). However, my Sharepoint site is in Auckland NZ local time. Of course, the difference is only apparent if a day line is crossed, i.e. befor noon local, which would show the date a day prior.

 

Then, I have an Excel spreadsheet that uses the Sharepoint list as a data source, so when I use the dates, they're back in UTC.

 

HOWEVER--if I, or anyone, edit(s) the date on the Sharepoint (even to the same day), it converts the data to NZ local, which then screws up the dates in the formulas. 

 

Help? I just want some consistency in the date/time groups!!!

2 REPLIES 2
Anonymous
Not applicable

Actually--update---the Form data looks to NOT be time-zoned--i.e. the date the user inputs is recorded as simple date format. The UTC application seems to come from the flow input from Forms to Sharepoint...

 

HELP!!!!

 

Hi @Anonymous ,

According to your description, the issue is when you edit the date in the SharePoint, the date will be convert to NZ local time.

 

Here I suggest you add the convertToUtc function before you use the date from the list.

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

The expression in the Compose is: convertToUtc(items('Apply_to_each')?['Date'],'New Zealand Standard Time')

6.png

Best Regards,

Community Support Team _ Zhongys

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

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.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (2,020)