get first of current month python

31

get first of current month python -

from datetime import datetime, date

print(date.today().replace(day=1))

first day of the month python -

from datetime import datetime

datetime.today().replace(day=1)

find first date python -

oldest = min(datetimes)

Comments

Submit
0 Comments