Write a Python program to subtract five days from current date


Topic: Write a Python program to subtract five days from current date

Solution

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



List all Python Programs