def convertDateString(datestring):
    try:
        return datetime.datetime.strptime(datestring, '%Y-%m-%d %H:%M:%S')
    except ValueError:
        return datetime.datetime.strptime(datestring, '%Y-%m-%d %H:%M:%S')
def convertDateString(datestring):
    try:
        return datetime.datetime.strptime(datestring, '%Y-%m-%d %H:%M:%S')
    except ValueError:
        return datetime.datetime.strptime(datestring, '%Y-%m-%d %H:%M:%S')