def isDate(date_text):
    try:
        datetime.datetime.strptime(date_text, '%Y-%m-%d')
        return True
    except __HOLE__:
        return False
dataset/ETHPy150Open JeffHoogland/qutemtgstats/Code/PasteWindow.py/isDate