Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用 EPPlus 将数据写入 Excel 文件。
我有一个日期类型的列,格式如下
ws.Column(1).Style.Numberformat.Format = "yyyy-mm-dd h:mm";
在文件中,它被正确保存。
但是当我尝试使用它来阅读它时ws.Cells[1, 1].Value.,它会打印出来 41500.678634259297
ws.Cells[1, 1].Value.