Python ProgrammingPython Programming

Find the date for the first Monday from Today in Python

from dateutil.rrule import rrule, WEEKLY, MO
from datetime import date

next_monday = rrule(freq=WEEKLY, dtstart=date.today(), byweekday=MO, count=1)[0]
print(next_monday)
Output
2021-05-17 00:00:00