programming-examples/python/Date/Python program to subtract five days from current date.py

4 lines
158 B
Python
Raw Normal View History

2019-11-15 12:59:38 +01:00
from datetime import date, timedelta
dt = date.today() - timedelta(5)
print('Current Date :',date.today())
print('5 days before Current Date :',dt)