Hello, 

I need to know how to get the current datetime when u schedule a event every week on the history data. 

Something like this: 

 self.Schedule.On(self.DateRules.Every(DayOfWeek.Monday), self.TimeRules.At(2, 0), Action(self.WeeklyObserve))

And the Scheduled event: 


    def WeeklyObserve(self): 
        start_date = datetime.today() - timedelta(days=7)
        end_date = datetime.today() - timedelta(days=5) 

I wanna get the starting and ending date of last week. 

Do someone know how to achive this? 


        

Author