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 / Dates selected on a da...
Power Apps
Answered

Dates selected on a date picker on mobile are incorrect when patched to SharePoint

(0) ShareShare
ReportReport
Posted on by

Hi,

 

Please be kind this is my first post and I did have a little search 🙂

I've created a Power App for a client to allow their employees to request holiday.

 

When dates are selected and patched (whilst on a desktop) the dates that appear on my SharePoint list match those selected in the app.
When dates are selected and patched (whilst on a phone via the Power Apps app) the dates that appear on my SharePoint list differ wildly to those selected in the app. There doesn't appear to be any pattern; sometimes the dates that appear in SharePoint can differ by 500+ days to the days selected on the date picker. 

Any ideas as to why this might be?

Many thanks!

Categories:
I have the same question (0)
  • SpongYe Profile Picture
    5,721 Super User 2026 Season 1 on at

    hi @emsleyd 

     

    Maybe try a datetime format:

    Text(DateTimeValue(Now()), "mm/dd/yyyy hh:mm AM/PM", "en-US")

     

    You didn't post any code so I assume there isn't any formatting yet.

     

    Please also heck this article: https://powerusers.microsoft.com/t5/Building-Power-Apps/DatePicker-date-writes-a-2-year-in-advance-date-into-SharePoint/m-p/119939#M42339


    -----------------------
    PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻

  • emsleyd Profile Picture
    on at

    Hi @SpongYe 

    Thank you for the reply. 

    This is my current format:

    DateTimeValue(
    Text('dpFrom FDRS'.SelectedDate, "[$-en-GB]mm/dd/yyyy") & " " & FDStartColumn),


    The code for FDStartColumn is:

    Set(
    FDStartColumn,
    Switch(
    FromDayOfWeek,
    2, Text(LookUp('Holiday Data', Title = SelectedUser).MonStart, "[$-en-GB]hh:mm"),
    3, Text(LookUp('Holiday Data', Title = SelectedUser).TuesStartCalc, "[$-en-GB]hh:mm"),
    4, Text(LookUp('Holiday Data', Title = SelectedUser).WedStartCalc, "[$-en-GB]hh:mm"),
    5, Text(LookUp('Holiday Data', Title = SelectedUser).ThursStartCalc, "[$-en-GB]hh:mm"),
    6, Text(LookUp('Holiday Data', Title = SelectedUser).FriStartCalc, "[$-en-GB]hh:mm")
    )
    );


    I tried using "DateTimeFormat.ShortDateTime24" as per the article you linked but this threw an error in the mobile version; stating the From column was required. It worked fine on the Desktop version though. 

    I changed the "Date Time Zone" on my Date Picker from Local to UTC which improved things, the date was only out by one day but the difference between UTC and my Local time is only 1 hour. 

    Still stumped 😟



  • emsleyd Profile Picture
    on at

    ok, i'm not entirely sure how but I have both showing the same date; except Desktop is formatted mm/dd/yyyy and Mobile dd/mm/yyyy.

    I want both to show as dd/mm/yyyy however if I change the format in the below from mm/dd to dd/mm then the formats of the Desktop and Mobile dates just swap in SharePoint. 

    DateTimeValue(
    Text('dpFrom FDRS'.SelectedDate, "[$-en-GB]mm/dd/yyyy") & " " & FDStartColumn),

    .

     

  • PowerGirl Profile Picture
    130 on at

    What is the column type in your SharePoint list? If it is date time it should work automatically. If it is a single line text you will face the error when the dates are configured for different regions in different devices. 

  • emsleyd Profile Picture
    on at

    I'm using SharePoint classic as the list in question is a view of a SharePoint Calendar. It has to be classic to link to Outlook. My From column is of type Date and Time however there is no formatting. I've attempted to add JSON formatting but as of yet to no avail. 

     

    I've tried a number of different versions of the below but the same items always error:

     

    emsleyd_0-1696236703041.png

    All my Date Pickers are formatted as below:

    emsleyd_0-1696259787093.png

     

    I've seen on other threads that populating the Language fields resolved the issue but I have attempted this with "EN-GB" and its made no difference. 

  • Verified answer
    emsleyd Profile Picture
    on at

    I've worked it out. The solution in the end was to delete the date formatting from the From and To fields in the Patch

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 839

#2
Valantis Profile Picture

Valantis 533

#3
Haque Profile Picture

Haque 412

Last 30 days Overall leaderboard