Closed mmitch closed 1 year ago
Thanks for your report! Please ensure you have provided enough info in order to recreate the issue, including the problematic ODS File.
The resulting type is parsed looking the attribute "office:value-type" in the XML. The date format should not matter. SODS convert all the dates to the UTC format.
But it's true the documentation is misleading. The type should be LocalDate, not Date.
Javadoc updated
The JavaDoc for
Range.getValue()
saysOn my first try of SODS (version 1.5.2), reading a cell with a date gave me a
java.time.LocalDate
instead of aDate
.I like this because I want a LocalDate and don't have to write a conversion Date->LocalDate, but the documentation is a bit off.
Is the resulting type depending on the cell formatting? I have explicitely set the cell format to
tt.mm.jjjj
(likeyyyy-mm-dd
but for German locale) in the spreadsheet.