how to get first date of a month in python code example Example: first day of the month python from datetime import datetime datetime.today().replace(day=1)