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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Problem Patching date ...
Power Apps
Answered

Problem Patching date column from date picker using desktop and mobile interface

(0) ShareShare
ReportReport
Posted on by 1,119
Hello team,
I have built mobile app for food delivery vendor. I have been facing issue in patching a date column into SP.
in my SP list i have a date column with type text. The reason being storing date column as text is to avoid any delegation.
In my Power Apps i am using date picker to select the date. in the date picker format property i have chosen the format as "dd/mm/yyyy"
I have no issues in patching if i use desktop or laptop. the date column in my SharePoint list properly getting patching.
But at the same time, if i use the app in mobile, when i patch , the date column is getting patched as September 1, 2024. Due to this when i use the app in mobile, filters not working.
what is the solution to this ? anybody have idea ?
 
My code on patch button onselect :
 
ForAll(varMenuItems As _DynamicItems,
Patch(MyMealPlan_Dynamic, {mealtype:_DynamicItems.mealtype,Title: _DynamicItems.mealname,mealdate:Text(Left(dp_menu.SelectedDate,10),"dd/mm/yyyy"),vegtype:LookUp(varMenuItems,mealname=_DynamicItems.mealname,Title)}));
 
Categories:
I have the same question (0)
  • Verified answer
    timl Profile Picture
    36,393 Super User 2025 Season 2 on at
    Hi Venka91
     
    There shouldn't be any need to call Left 10 on the selected date. I'd suggest the following which specifies a locale of "en-GB" (eg, one that uses the dd/mm/yyyy date format). Hopefully that might work better for you on the mobile device.
     
    ForAll(
        varMenuItems As _DynamicItems,
        Patch(
            MyMealPlan_Dynamic,
            {
                mealtype: _DynamicItems.mealtype,
                Title: _DynamicItems.mealname,
                mealdate: Text(dp_menu.SelectedDate, "dd/mm/yyyy", "en-GB"),
                vegtype: LookUp(varMenuItems, mealname = _DynamicItems.mealname, Title)
            }
        )
    );
    
     
  • WarrenBelz Profile Picture
    153,073 Most Valuable Professional on at
    Hi venka91 
    Adding to timl 's suggestion as I am a bit perplexed at a couple of things. Firstly Date fields are Delegable in SharePoint for equals and greater/less than (everything you would normally query on). Storing as Text will actually cause Delegation issues when you convert them inside a query. Also would not the value patched to vegtype simply be _DynamicItems.Title (you are looking up the matching record and returning this field value).

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard