-
-
Notifications
You must be signed in to change notification settings - Fork 636
Support for DateTime when writing XLSX #662
Comments
There is an inconsistency in the code I think. |
#735 adds this to ODT. |
PR #751 adds XLSX. |
This is true. |
Hi, I recently faced this issue of missing support for dates for XLSX in my project. I saw that there were some PRs for this. I think the nicest one was #816. For me this solution is great and it's according to specification. The fact that some clients (Google Docs was mentioned) don't support it doesn't bother me. This shouln't be the reason for not merging this functionality. It works in Excel, is according to spec and it doesn't break anything. @adrilo Would it be possible to reconsider merge of this PR? Thanks. |
Solved in openspout/openspout#13 |
@Slamdunk Thanks! Any idea when this will be released? |
Released now in Be aware that you need to specify the number format to have the output you need. |
@Slamdunk Could you give an example? Would that work (seems weird)? $style = (new StyleBuilder())
->setFormat('0.000')
->build();
$cell = WriterEntityFactory::createCell(new \DateTime(), $style); EDIT: Missing |
$style = (new StyleBuilder())
->setFormat('yyyy-mm-dd');
$cell = WriterEntityFactory::createCell(new \DateTime(), $style); |
👍 Thanks a lot! |
The XLSX writer (and maybe also ODS, I haven't check) is missing support for date cells.
The text was updated successfully, but these errors were encountered: