cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
indhaa
Impactful Individual
Impactful Individual

Filter Gallery date not working correctly

Hi,

 

The date range filter in my gallery is not working correctly. The FROM date (DatePicker1) is working ok but the TO DATE(DatePicker2) does not show the items equal to the created date and show items less than that date. I have to select a future date to include the items in the filter, I cant see any issue in my code, Let me know what I'm doing wrong, Have tested on another screen to be sure too.

 

For example if created date is 21st April and if I select that date on TO DATE(DatePicker2) , it wont show the record but if I change to 22nd April it will show the record.

Filter(USBAccess,Created>=DatePicker1.SelectedDate && Created<=DatePicker2.SelectedDate)

1 ACCEPTED SOLUTION

Accepted Solutions
zaphod88
Responsive Resident
Responsive Resident

Try

 

Filter(USBAccess,Created>=DatePicker1.SelectedDate && Created<=DateAdd(DateAdd(DatePicker2.SelectedDate,1,Days),-1,Milliseconds))  

 

View solution in original post

3 REPLIES 3
dariobois
Resolver II
Resolver II

Hi! 

I think the problem is that the datepicker value has the time 00:00:00.

 

Regards!

 

indhaa
Impactful Individual
Impactful Individual

I came to that conclusion just a min ago.

Any idea how i can set the default time 

zaphod88
Responsive Resident
Responsive Resident

Try

 

Filter(USBAccess,Created>=DatePicker1.SelectedDate && Created<=DateAdd(DateAdd(DatePicker2.SelectedDate,1,Days),-1,Milliseconds))  

 

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,294)