cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Narula_Srinivas
Advocate II
Advocate II

Filter SharePoint list date column using date picker

Hi Friends......I am trying to build an app with sharepoint list as datasource with some one filter. I have gone through most of the posts in this forum and tried below queries but no luck in getting right results.

 

Data Source Name : 'Session Booking'

SharePoint List Date Column name : SessionStartDate

 

Filter('Session Booking', SessionStartDate>=Today())
Filter('Session Booking', SessionStartDate>=DatePicker2.SelectedDate)
Filter('Session Booking', SessionStartDate>=Text(DatePicker1.SelectedDate, "[$-en-US]dd/mm/yyyy"))
SortByColumns(Filter('Session Booking', SessionStartDate>=Today()),"SessionStartDate",If(SortDescending1, Descending, Ascending))

 

Need your help in finding right formula to get results.

 

Advance Thanks!!

1 ACCEPTED SOLUTION

Accepted Solutions
Narula_Srinivas
Advocate II
Advocate II

After spending more than a day...I could able to filter sharepoint list date column with powerapp datepicker.

 

Instead of passing DatePicker2.SelectedDate directly to sharepoint date column. We need to pass Year,Month & Day seperately as shown below.

 

 

ActivityStartDate<=Date(Year(DatePicker2.SelectedDate),Month(DatePicker2.SelectedDate),Day(DatePicker2.SelectedDate))

 

 

Hope this helps someone.

 

Happy Coding!!

 

View solution in original post

3 REPLIES 3
Narula_Srinivas
Advocate II
Advocate II

After spending more than a day...I could able to filter sharepoint list date column with powerapp datepicker.

 

Instead of passing DatePicker2.SelectedDate directly to sharepoint date column. We need to pass Year,Month & Day seperately as shown below.

 

 

ActivityStartDate<=Date(Year(DatePicker2.SelectedDate),Month(DatePicker2.SelectedDate),Day(DatePicker2.SelectedDate))

 

 

Hope this helps someone.

 

Happy Coding!!

 

View solution in original post

Thanks but did not work for me. Is is specific to Region?

not sure. I am using UK region.

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (54,450)