Jan-05-2019, 08:13 AM
(This post was last modified: Jan-05-2019, 08:26 AM by Gribouillis.)
Hi, i am new to programming. I would like to create a program which i could input a date variable and if the date variable is not within the range, it would produce another result.
import datetime
d1 = datetime.date(2019,1,1)
d2 = datetime.date(2019,1,30)
inputd_v = datetime.date("Please input date: ")
if inputd_v > d1 < d2:
print (d1)
else:
print ("Your date is out of range")Please assist as right this program. Thanks!
