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 / Patching date time val...
Power Apps
Answered

Patching date time value to SharePoint column and month and day are reversed

(0) ShareShare
ReportReport
Posted on by 333

Hi all,

 

Hoping someone can see a solution to this issue:

I have a date time column in SharePoint (Booked In Time) and regional settings are set to Australia with format of dd/mm/yyyy.

In my PowerApp, I am using a date picker with two dropdowns (for hours and minutes).

I have a label that displays with this code: 

Text(DateValue1_4.SelectedDate, "dd-mm-yyyy") & " " & Text(HourValue1_4.Selected.Value, "00") & ":" & Text(MinuteValue1_4.Selected.Value, "00")

For the patch, I use the following to convert a text string to date time value: 'Booked Time In' DateTimeValue(lblDateTimeValueBooked.Text)

In SharePoint though, the column displays mm/dd/yyyy

Although the settings on the date picker shouldn't matter due to the string to date time conversion, I have the Language property as "en-AU" and the Format to "dd/mm/yyyy"

 

not sure why it won't maintain the correct format?

Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,526 Most Valuable Professional on at

    Hi @BrendanZ1 ,

    You gotta love US dates  . . . however you already have the value you need to write back to a date/time field

    DateValue1_4.SelectedDate +
    Time(
     Value(HourValue1_4.Selected.Value), 
     Value(MinuteValue1_4.Selected.Value),
     0
    )

     

    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.

    MVP (Business Applications)   Visit my blog Practical Power Apps

     

  • BrendanZ1 Profile Picture
    333 on at

    Thank you @WarrenBelz - did feel like it was a simple fix. All working now and yes I love US dates - they are the best......if you live there

  • WarrenBelz Profile Picture
    156,526 Most Valuable Professional on at

    @BrendanZ1 ,

    I have posted this one a few times before . . . . 

    mmddyyyyCountries.jpg

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 402 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

Last 30 days Overall leaderboard