Periksa apakah tanggal valid python
class date_tools:
def check_date(self, month, day, year):
'''test to see whether the date falls within the scope of a legitimate date'''
try:
datetime.datetime(year, month, day)
return "Valid"
except ValueError:
return "Invalid"
structure