cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AndyC
Level: Powered On

Date / Time not writing back to Sharepoint List

Hi,

 

I have not been able to find an answer to this problem I am trying to get my head around.

 

In my sharepoint list I have a date/time column:

 

datetime1.JPG

 

I have created a Powerapp from the list, letting Powerapps/Sharepoint devise the data cards. So I have fields to enter the date/time:

 

datetime2.JPG

 

 

I have two issues:

 

1. There seems to be no easy way to format the date format from US (above) to UK (DD/MM/YYYY).

 

2. This may be related - but a picked date/time does not save back to the Sharepoint list when I submit the form. All other fields do.

 

Can anyone help please?

 

Cheers,

 

andy

3 REPLIES 3
Sienna
Level 10

Re: Date / Time not writing back to Sharepoint List

I wouldn't use forms for that. You better create your own form and you will have no problem at all with anything. You can find more info how to create your own form here

 

https://baizini-it.com/blog/index.php/2017/09/28/powerapps-101-create-your-own-forms/

RussellGove
Level 8

Re: Date / Time not writing back to Sharepoint List

the sharepoint rest api requires dates to be written back in iso format, so you wold ned to deal with that. it's a shame that the default generated app does not work.

Highlighted
KMI-Keith
Level: Powered On

Re: Date / Time not writing back to Sharepoint List

Im not sure what your setup is but can you add another field/column and have that convert it to display the value you need in the correct format.

 

e.g. -

1. Create a new field/column in the SP List

2. Add a statement on the OnChange of your Date/Time picker to:

UpdateContext( {TimeStamp: Text(DateTimeValue(I_DateTime.Text), "[$-en-GB]dd/mm/yyyy hh:mm AM/PM") } )

3. On the new field set its default to TimeStamp

 

I have used this before but only to display it in the powerapp not with sending the data to the SP List column.

 

Let me know if you have any questions.

Regards,

 

Keith

Helpful resources

Announcements
firstImage

PowerApps Monthly Community Call!

Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.

firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 446 members 4,553 guests
Please welcome our newest community members: