2018-05-08
2018-05-03
timenow = datetime.today()
parser_date = r'\d*-\d*-\d*'
datenow = re.findall(parser_date, str(timenow))
print(datenow[0])
check = '2018-05-03'
if check == datenow[0]:
print('ok')
else:
check == '2018-05-08'
print(check)
2018-05-08 ## print(datenow[0])
2018-05-03 ## print(check)
Process finished with exit code 0