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

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Date Time weirdness

(0) ShareShare
ReportReport
Posted on by

I've got a PowerApp I'm building in the UK with UK date time formats. I've added a date time picker on the form for a text field, and the date picker displays in uk format (mm/dd/yyyy). On an new item, when it saves back to the text field in SP it does it in UK format. All good

 

However, If I reopen the form in edit mode for an existing item, the date selected by the date field is completely wrong. For example 13/05/2021 stored in the text field results in the date picker defaulting to 05/01/2022

robinisathakur_0-1620779484119.png

 

I've set the format of the Date Picker to be dd/mm/yyyy

 

robinisathakur_0-1620779791279.png

 

I have the same question (0)
  • Verified answer
    v-bofeng-msft Profile Picture
    on at
    Re: Date Time weirdness

    Hi @robinisathakur :

    please set the data card's Update property to

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

    and then set the data picker's DefaultDate property to :

    DateValue(Parent.Default,"en-GB")

     Best Regards,

     Bof

  • robinisathakur Profile Picture
    on at
    Re: Date Time weirdness

    Thanks, it was simpler than I was trying to do it, and you saved my bacon! 

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 663 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 398 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 235

Last 30 days Overall leaderboard