programming-examples/python/Date/Calculates the date six months from the current date.py
2019-11-15 12:59:38 +01:00

2 lines
93 B
Python

import datetime
print((datetime.date.today() + datetime.timedelta(6*365/12)).isoformat())