

def encodeValue(self, value):
    'Return a string-encoded value.\n\n        ``value`` argument should be a value suitable for the\n        `utils.getDate` call.\n\n        Return:\n            Return value is a string in format "yyyymmdd".\n\n        '
    if value:
        return utils.getDate(value).strftime('%Y%m%d')
    else:
        return (' ' * self.length)

dataset/ETHPy150Open kennethreitz/tablib/tablib/packages/dbfpy3/fields.py DbfDateFieldDef.encodeValue/original