Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upDates in Excel's internal format #266
Comments
So this isn't quite true. Generally, a date cell in xlsx will carry a date style, which these cells do not. They are just integers and it is a choice to interpret them as dates. But I suppose we can interpret numbers as dates, when explicitly directed to do so via |
* Add logical cell and col types; general refactor of cell typing and coercion Rescues xls formula dates * Make logicalFromString() to use in xls and xlsx * Attempt to coerce text to number; fixes #217, fixes #106 * Work on NEWS.md * Fiddle with comments and kick appveyor * Edit Xls[x]WorkSheet.h side-by-side for parallelism * Edit NEWS.md * Coerce numeric to date in a "date" column; fixes #266 * Don't use C++11 when converting string to double * Test all the warnings * Enhance comments and refactor xls cell typing * Consistently use strncmp(this, that, n) == 0 * Simplify logical cell creation in xls * Fewer parens * Add comment, collapse two cases * Use Rf_StringTrue() and Rf_StringFalse() * Beef up tests of logical coercion; delete old coercion test that adds nothing * Frontload comments re: xls & xlsx cell types and make more parallel
I have a column which has dates in Excel's internal format. The Excel file comes from someone's reporting software, so I can't just format the column in Excel (unless I want to do it every time I get an update).
date_test.xlsx
These should map to the first, second, and third of January 2008.
But if I tell
read_excelthat it's a date: