bmihelac/django-import-export — pull request #68 by kuldeeprishi (2014-03-01 06:52:51+00:00)
Title: Modified to Handle Excel DateFormat

added a private function to DateWidget to handle excel date object

def __xldate_as_datetime(self, xldate, datemode=0):
# datemode: 0 for 1900-based, 1 for 1904-based
return (datetime(1899, 12, 30) +
timedelta(days=xldate + 1462 * datemode)).date()