I am trying to read the emails(Gmail) of the previous week. For example, Today’s DateTime is Dec 22, Friday 7:30 pm. I want to read all the emails from Dec 15, Friday 7:30 pm to Dec 22, Friday 7:30 pm. I want to repeat this every week, so I don’t want to hardcode the DateTime. I am unable to get the logic.
Any help would be appreciated.