我有一个单元格使用node-xlsx这个模块读取并且操作的。其中有一列的格式是日期格式:
但是我在读取以后,发现这一列的值却变为了一串浮点型的数据
求大神指导一下,这个怎么把串数字转化为excel表格的时间格式
认证0级讲师
After reading the documentation, I found a solution. If you can read English without any problem, check here https://github.com/mgcrea/nod...
var date = new Date(1900, 0, dateVal - 1);
So the calculated result is
You can upload an xlsx document according to this link http://oss.sheetjs.com/js-xlsx/ to see the data
After reading the documentation, I found a solution. If you can read English without any problem, check here https://github.com/mgcrea/nod...
So the calculated result is
You can upload an xlsx document according to this link http://oss.sheetjs.com/js-xlsx/ to see the data