Convert Unix Epoch Time to Date in Google Sheets

后端 未结 4 1763
太阳男子
太阳男子 2020-12-24 11:44

I have a sheet with a column of unix epoch times (in seconds): 1500598288

How can I convert these into normal dates?

4条回答
  •  萌比男神i
    2020-12-24 12:21

    The simplest way, not requiring any JS programming, would be through a formula, dividing by 86400 seconds per day and adding to January 1, 1970. For example the following gives 21 July 2017:

    =1500598288/86400+date(1970,1,1)
    

    To convert a whole column of numbers, just use ARRAYFORMULA:

    =arrayformula(A:A/86400+date(1970,1,1))
    

提交回复
热议问题