Excel and Google Sheets date serial converter
Turn a spreadsheet date number into a UTC date and Unix timestamp, or turn a Unix timestamp into a spreadsheet date number.
Choose your workbook’s date system
A serial counts days and uses the fraction for the time. In Excel 1900, 40729.5 is July 5, 2011 at noon. In Excel 1904 the same date and time is 39267.5. Google Sheets counts from December 30, 1899 and supports negative serials.
Excel’s 1900 system reserves serial 60 for a fictitious February 29. The converter flags any value on that day. In Google Sheets, serial 60 represents February 28, 1900.
Spreadsheet dates carry no UTC offset in the serial. Supply the offset in effect on the original date. Excel inputs must represent calendar dates in the selected system. Google Sheets and UTC output use years 0001 through 9999. The converter rounds timestamps to the nearest millisecond, and writes serials to 12 decimal places when needed.
Excel date systems · Excel’s 1900 leap-year behavior · Google Sheets date values
Convert dates in the spreadsheet
For modern dates stored in UTC, use =(A2-DATE(1970,1,1))*86400 to get Unix seconds from a date in A2. To go back from Unix seconds, use =A2/86400+DATE(1970,1,1) and format the result as a date and time. Use the form above for Excel 1900 dates before March 1, 1900 or when an offset applies.
For a whole column, save it as a CSV and use the CSV timestamp converter. Choose Unix from date serials to add UTC dates and Unix values beside the original rows.