“the current date”


To get the current date in Python, the best tool is the datetime package. Here’s a demo:


from datetime import date
today = date.today()
valentines_day = date(2026, 2, 14)
if valentines_day < today: print("Valentine's Day already happened.") elif valentines_day > today:
print("Valentine's Day is coming up!")
else:
print("Valentine's Day is TODAY!!! (Hope you remembered!)")