Extracting dates from Excel #116

Open
kper opened this Issue Feb 18, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@kper

kper commented Feb 18, 2018

In my excel sheet, I've got a column with dates. Unfortunately, calamine::DateType has no variant for dates and when I handle a date as a string I get for 29.08.2012 -> 41181.

It would be nice to have built-in date conversion

@kper

This comment has been minimized.

Show comment
Hide comment
@kper

kper Feb 18, 2018

Notes:

Excel stores dates as sequential serial numbers so that they can be used in calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008 is serial number 39448 because it is 39,447 days after January 1, 1900.

Source: https://support.office.com/en-us/article/datevalue-function-df8b07d4-7761-4a93-bc33-b7471bbff252

kper commented Feb 18, 2018

Notes:

Excel stores dates as sequential serial numbers so that they can be used in calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008 is serial number 39448 because it is 39,447 days after January 1, 1900.

Source: https://support.office.com/en-us/article/datevalue-function-df8b07d4-7761-4a93-bc33-b7471bbff252

@tafia

This comment has been minimized.

Show comment
Hide comment
@tafia

tafia Mar 1, 2018

Owner

Please refer to #95.

The issue is that the logic to decide whether the cell is a Date, an integer or a datetime is not yet implemented and unfortunately not straightforward.

Owner

tafia commented Mar 1, 2018

Please refer to #95.

The issue is that the logic to decide whether the cell is a Date, an integer or a datetime is not yet implemented and unfortunately not straightforward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment