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
Memorable Member
Memorable Member

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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Did you miss the call? Check out the recording here!

Top Solution Authors
Top Kudoed Authors
Users online (17,330)