programming-examples/python/Date/Calculates the date six months from the current date.py

2 lines
93 B
Python
Raw Normal View History

2019-11-15 12:59:38 +01:00
import datetime
print((datetime.date.today() + datetime.timedelta(6*365/12)).isoformat())