How to determine the date of Starting day of current and last week in python ?

Viewed 244

I need to find the date of the starter day of current and last week.

Here, business day of a week starts from SUNDAY. So, for today the date I want is to be "07-16-2017" as "mm--dd--yyyy" format. I can get today's date easily from datetime.datetime.now().strftime ("%Y-%m-%d") but from the sysdate I have to pull out the starter day of the week.

I need the starter day's date for last week as well.

There is no default method for week information in datetime. Is there any other method in any package in python to determine the required information ?

1 Answers
Related