Hi @demo099
can try below
ddlfromDate.Format = "mm/dd/yyyy"
ddltoDate.Format = "mm/dd/yyyy"
TemplateGalleryList1.Items = Filter(taskList, fromDate>=ddlfromDate.SelectedDate && toDate <= ddltoDate.SelectedDate)
And also if you want to get the data only 2 weeks data and and source should be having only date format
you can apply the below filter on Gallery
TemplateGalleryList1.Items = Filter(taskList, (fromDate>=ddlfromDate.SelectedDate && toDate <= ddltoDate.SelectedDate) && toDate <= DateAdd(Now(),14))

Thanks
Please click Accept as Solution on this reply if it helped to solve your issue, and thumbs-up if you feel this is useful or important in other ways as a boost.