Answers for "for a given datetime in python, get the first day of the month"

1

first day of the month python

from datetime import datetime

datetime.today().replace(day=1)
Posted by: Guest on December-08-2020

Code answers related to "for a given datetime in python, get the first day of the month"

Python Answers by Framework

Browse Popular Code Answers by Language