import datetime

def par_date(date_string):
    try:
        date = datetime.datetime.strptime(date_string, "%Y-%m-%d").date()
        return date
    except:
        return None
74ba35bc26f093ebcf0a2e390c2a2cdf6a54664b
<mask token>

<mask token>


def par_date(date_string):
    try:
        date = datetime.datetime.strptime(date_string, '%Y-%m-%d').date()
        return date
    except:
        return None

import datetime


def par_date(date_string):
    try:
        date = datetime.datetime.strptime(date_string, '%Y-%m-%d').date()
        return date
    except:
        return None

import datetime

def par_date(date_string):
    try:
        date = datetime.datetime.strptime(date_string, "%Y-%m-%d").date()
        return date
    except:
        return None