excel时间戳‘精准’转换为日期

excel: 从1900年到相应日期的天数,是从第一天的早上八点开始计算的(多出1天8小时)

js:从1970年开始,从0开始计算(与excel相差70年)

 dayjs(t).format('YYYY-MM-DD')

Guess you like

Origin blog.csdn.net/SunFlower914/article/details/121479727