Source Code:
(back to article)
import calendar from datetime import datetime # Hole das aktuelle Jahr und den Monat now = datetime.now() year = now.year month = now.month # Hole den letzten Tag des Monats _, last_day = calendar.monthrange(year, month) print(last_day)
Result:
Report an issue