-
Notifications
You must be signed in to change notification settings - Fork 87
Open
Description
Our dates are in a format that is getting incorrectly parsed by the default parsing strategies.
Our date format is y-mmm, e.g. "16-Aug" for month of August, no day, year 2016
Roo/Roo-xls give us a Date object for 2017-08-16 for month of August, day 16, year 2017
sheet.cell(1,1) => #<Date: 2017-08-16 ((2457982j,0s,0n),+0s,2299161j)>
In Roo for .xlsx files, we've been using the #formatted_value method as a workaround. It reformats the date object which essentially gives us the underlying string.
sheet.formatted_cell(1,1) => "16-AUG"
The #formatted_value method is a bit of a hacky workaround but is serving us well enough. But there seems to be no way to get the underlying string representation of a Date, Time, or DateTime field for .xls files in roo-xls.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels