将毫秒转换为日期(在Excel中) [英] Convert milliseconds to date (in Excel)

查看:1388
本文介绍了将毫秒转换为日期(在Excel中)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一行excel与以下数据:1271664970687(我认为是从1970年的毫秒数...)。
我想添加一行将显示为日期/时间。

解决方案

以毫秒为单位转换值到日子只是(MsValue / 86,400,000)



我们可以通过DATE获得1/1/1970作为数值(1970,1,1)

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

使用您的1271664970687的值,并将其格式化为 dd / mm / yyyy hh:mm:ss给我一个日期和时间19/04/2010 08:16:11



Neil。


I have a row in excel with the following data: 1271664970687 (I think it's the number of milliseconds from 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)

We can get 1/1/1970 as numeric value by DATE(1970,1,1)

= (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

Neil.

这篇关于将毫秒转换为日期(在Excel中)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆