def _parse_created(created):
    try:
        created_datetime = datetime.datetime.strptime(created, '%Y-%m-%d')
        return dt.dt_to_decimal(created_datetime)
    except __HOLE__:
        raise BadRequestException(
            "'%s' value has an invalid format. It must be in YYYY-MM-DD format."
            % created)
dataset/ETHPy150Open openstack/stacktach/stacktach/stacky_server.py/_parse_created