hi i would like to validate some date in python. but the problem is that i have a praticular range, for example, my date goes from 1/1/2014to 08/07/2014 . So my question is how do i validate both the format and the value. i looked at this link but it only validates the format but not the specific values.
import time
date = input('Date (mm/dd/yyyy): ')enter date here
try:
valid_date = time.strptime(date, '%m/%d/%Y')
except ValueError:
print('Invalid date!')