Get Previous, Current and Next Weeks Excluding Saturday and Sunday
问题 I wants to display dates/days from Monday to Friday excluding Saturday/Sunday as mentioned in the image below. My Scenario: When screen loads the current week should display. On previous button click ( DisplayedWeek - 1 ) On Next button click ( DisplayedWeek + 1 ). My Work , After some research this is what i have tried. let calendar = Calendar.current let currentDate = calendar.startOfDay(for: Date()) /* value = 0 for current, value = 1 for next, value = -1 for previous week. */ let nextWeek