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

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
Resident Rockstar
Resident Rockstar

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/

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.

KMI-Keith
Advocate IV
Advocate IV

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

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Top Solution Authors
Users online (5,159)