cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
lindaisy
Frequent Visitor

Date formatting in patch

Hi, 

I want to patch a date value from Powerapps into SharePoint.

It shows as "April 23, 2020 "

Capture.PNG

 in PowerApps and shoule be with date format "04/23/2020" in SharePoint. 

The patch doesn't work as the code  ...

StartDate: DateValue(Text(dateStartDate.SelectedDate),"mm/dd/yyyy")

 

 

Anyone can help this issue ? Thanks a lot !!! 

2 ACCEPTED SOLUTIONS

Accepted Solutions
eka24
Super User
Super User

Hi remove the datevalue:

Text(dateStartDate.SelectedDate,"mm/dd/yyyy")

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

View solution in original post

v-siky-msft
Community Support
Community Support

Hi @lindaisy ,

 

What is the data type of column you want to patch in SharePoint list?

If you patch the date to a Date type Column in SharePoint, there is no need to change the format, the date values that are submitted are always saved in the SharePoint date format.

 

If you just want the Date Picker show the same format with SharePoint, please modify the Format property of Date Picker to 

"mm/dd/yyyy"

Snipaste_2020-06-25_17-19-01.png

Sik

View solution in original post

2 REPLIES 2
eka24
Super User
Super User

Hi remove the datevalue:

Text(dateStartDate.SelectedDate,"mm/dd/yyyy")

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

v-siky-msft
Community Support
Community Support

Hi @lindaisy ,

 

What is the data type of column you want to patch in SharePoint list?

If you patch the date to a Date type Column in SharePoint, there is no need to change the format, the date values that are submitted are always saved in the SharePoint date format.

 

If you just want the Date Picker show the same format with SharePoint, please modify the Format property of Date Picker to 

"mm/dd/yyyy"

Snipaste_2020-06-25_17-19-01.png

Sik

Helpful resources

Announcements
October Events

Mark Your Calendars

So many events that are happening this month - don't miss out!

Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Top Solution Authors
Top Kudoed Authors
Users online (2,216)