简体   繁体   English

将毫秒转换为日期(在 Excel 中)

[英]Convert milliseconds to date (in Excel)

I have a row in excel with the following data: 1271664970687 (I think it's the number of milliseconds from 1970...).我在 excel 中有一行包含以下数据:1271664970687(我认为这是 1970 年以来的毫秒数......)。 I would like to have addition row that will show it as date/time.我想要添加行将其显示为日期/时间。

Converting your value in milliseconds to days is simply (MsValue / 86,400,000)将您的值以毫秒为单位转换为天数很简单(MsValue / 86,400,000)

We can get 1/1/1970 as numeric value by DATE(1970,1,1)我们可以通过 DATE(1970,1,1) 得到 1/1/1970 作为数值

= (MsValueCellReference / 86400000) + DATE(1970,1,1)

Using your value of 1271664970687 and formatting it as dd/mm/yyyy hh:mm:ss gives me a date and time of 19/04/2010 08:16:11使用您的值 1271664970687 并将其格式化为dd/mm/yyyy hh:mm:ss给我一个日期和时间 19/04/2010 08:16:11

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM