cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Labraham36
Helper II
Helper II

Search by date

Hello Community! I have a problem and I don't know how to solve it: My App has the typical home screen with its search engine and a sample of the entered records. What this App does mainly is record a date and data. My problem arose since I need the user to be able to search by putting a date, and not through a text field. I need you to search through the field that is data of type date. How can I do it? My search formula is the following:

 

SortByColumns (Search ([@ App_Horas]; TextSearchBox1.Text; "Comment"; "User"); "Comment"; If (SortDescending1; Descending; Ascending))App Horas.png

1 ACCEPTED SOLUTION

Accepted Solutions
gabibalaban
Dual Super User
Dual Super User

Hi @Labraham36 ,

Use a DatePicker control to select the date you want and on Gallery -> Items use:

 

SortByColumns (Filter ([@ App_Horas]; DateColumn = DatePickerControl.SelectedDate); "Comment"; If (SortDescending1; Descending; Ascending))

 

Hope it helps !

View solution in original post

4 REPLIES 4
gabibalaban
Dual Super User
Dual Super User

Hi @Labraham36 ,

Use a DatePicker control to select the date you want and on Gallery -> Items use:

 

SortByColumns (Filter ([@ App_Horas]; DateColumn = DatePickerControl.SelectedDate); "Comment"; If (SortDescending1; Descending; Ascending))

 

Hope it helps !

Labraham36
Helper II
Helper II

Thanks friend for the answer! I try but it is not working. What value should I enter in "DateColumn"? Sorry but I'm new and I'm a bit lost. Thanks!

I almost got it to work but it gives an error in the equal sign, why could it be?

 

 

App Horas.png

Drrickryp
Super User
Super User

Datepicker3.SelectedDate

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (1,433)