programming-examples/python/Date/Python program to subtract five days from current date.py
2019-11-15 12:59:38 +01:00

4 lines
158 B
Python

from datetime import date, timedelta
dt = date.today() - timedelta(5)
print('Current Date :',date.today())
print('5 days before Current Date :',dt)