web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Force the same date fo...
Power Apps
Answered

Force the same date format for data going from Powerapps to Sharepoint

(0) ShareShare
ReportReport
Posted on by 241

I have a form that has the user select a date. For some reason, when some users submit the form their date is recorded in sharepoint in the mm-dd-yyyy format. I would like the date data to all be recorded in the dd-mm-yyyy format. 

 

In a powerapps form the user selects a date. I have a label that simply displays the selected date in text - DatePicker2.SelectedDate .

 

I then had what I thought was a solution, another label with the text - DateValue(Label24.Text, "en-GB") .

 

Finally, the submission datacard pulls the data from the en-GB formatted label. 

 

This does not seem to fix the issue. Any suggestions?

 

 

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    155,487 Most Valuable Professional on at

    Hi @rsparks ,

    Use the Format property in the Date Picker and set it at "dd/mm/yyyy" (Australians like you have the date the right way in ascending order . . .) In a label it is

    Text(ThisItem.YourDateField,"[$-en-GB]dd/mm/yyyy"

    Your SharePoint date will depend on the regional settings in your SharePoint site.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

     

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi@rsparks,

    Based on the issue that you mentioned, do you want to format the date as the "dd-mm-yyyy"?

    Could you please share a bit more about the related date column, is it a DateTime type or a Text type?

    Do you use SubmitForm() or Patch() to save data?

    If this is a Text column, you could directly use the Patch() as following formula:

     

    Patch(
     SPlist,
     Defaults(
     SPlist
     ),
     {
     'test1': Text(
     DatePicker1.SelectedDate,
     "[$-en-US]dd-mm-yyyy"
     )
     }
    )

     

    If you use the SubmitForm() function, you could modify the Update property of the corresponding data card to the Text column as:

     

    Text(
     DatePicker1.SelectedDate,
     "[$-en-US]dd-mm-yyyy"
     )

     

    And if you use a DateTime column to store the date value, you format the language as "en-GB" that is a correct direction. In european regions, they display date as "dd-mm-yyyy". However, it's not enough to convert the formatting in Power Apps, you need to go to SharePoint's site settings and make some changes.

    Go to site settings>Site Administration>Regional settings>Region, select an european country as below:

    006.png

    If this is a DateTime column, you can use Patch() as below:

     

    Patch(
     test0917,
     Defaults(test0917),
     {
     Title: "1009",
     TestDate: DateValue(
     Text(
     DatePicker1.SelectedDate,
     "[$-en-US]dd-mm-yyyy"
     ),
     "en-GB"
     )
     }
    )

     

    If you use the SubmitForm() function, you could modify the Update property of the corresponding data card to the DateTime column as below:

     

    DateValue(
     Text(
     DatePicker1.SelectedDate,
     "[$-en-US]dd-mm-yyyy"
     ),
     "en-GB"
     )

     

    Note: Only "/" could be recognized at this point, if this does not matter, please use the "/" rather than "-"

    Best Regards,

    Qi

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 421

#2
Valantis Profile Picture

Valantis 405

#3
timl Profile Picture

timl 337 Super User 2026 Season 1

Last 30 days Overall leaderboard