I\'m trying to find the first day of the month in python with one condition: if my current date passed the 25th of the month, then the first date variable will hold the first da
from datetime import datetime date_today = datetime.now() month_first_day = date_today.replace(day=1, hour=0, minute=0, second=0, microsecond=0) print(month_first_day)