Hi @Powerappsuser11 ,
Use the StartOfWeek function to calculate the Monday of the selected start date.
Set(StartDate, StartOfWeek(DatePicker1.SelectedDate, StartOfWeek.Monday))
Set the gallery's Items property to show only the start date (Monday) calculated from the selected date.
{Date: StartDate}
To navigate to the previous Monday, update the StartDate variable to subtract a week.
Set(StartDate, DateAdd(StartDate, -7, Days))
Right Arrow OnSelect: To navigate to the next Monday after the end date, update the StartDate variable to add a week.
Set(StartDate, DateAdd(StartDate, 7, Days))
Update Gallery: Each time you update the StartDate, the gallery should automatically update to show the new week's Monday.
Set the StartDate variable on the OnSelect property of the left arrow icon:
Set(StartDate, DateAdd(StartOfWeek(DatePicker1.SelectedDate, StartOfWeek.Monday), -7, Days))
Set the StartDate variable on the OnSelect property of the right arrow icon:
Set(StartDate, DateAdd(StartOfWeek(DatePicker2.SelectedDate, StartOfWeek.Monday), 7, Days))
Set the Items property of the gallery to:
{Date: StartDate}
If this solution helps you, please mark it as the solution and leave a thumbs up. Thank you! 😊