I have a requirement to run a report on a weekly basis with week starting from Saturday and ending on Friday. However since the datetime or calendar module has week starting from Monday i couldn't use WEEKDAY option.
I tried the below option however it still gives me 5 for saturday,is there any options available to set weekstart day to Saturday so that for saturday it is 0 ? so that i can minus it from current date to get the desired dates or any other solution to acheive the same
Eg) If i run the report on August 30th it should fetch the data for August 18 to August 24
import calendar
calendar.setfirstweekday(calendar.SATURDAY)
calendar.firstweekday()
5