Data Import & Export

How to Convert Unix Milliseconds to Excel Dates in WPS Spreadsheets

John WilsonJohn Wilson Nov 13, 2026 869 views

Question details

User needs to convert Unix epoch timestamps expressed in milliseconds since January 1, 1970 into readable date or date-time values in WPS Spreadsheets after importing a CSV file.

Convert Unix Milliseconds to Excel Dates in WPS Spreadsheets
Product
WPS Spreadsheets
Device & OS
not provided
Scenario
Dates downloaded in a CSV file appear as large scientific-notation numbers, such as 1.65777E+12, because the source system exported Unix timestamps in milliseconds.
Observed behavior
Timestamp values display as large scientific-notation numbers instead of real dates.
Before you start

Confirm that the timestamp column is imported as numbers rather than text, and identify the first data cell, for example A2, so the conversion formula can be filled down the whole range.

Solution 1Recommended

Convert Unix milliseconds with the DATE formula and date formatting

Use this solution when CSV timestamp values are numeric Unix milliseconds and you need a standard date or date-time column in WPS Spreadsheets.

Unix timestamps count time since January 1, 1970. When the value is stored in milliseconds, divide it by 86,400,000, the number of milliseconds in one day, and add that result to the WPS Spreadsheets serial date for January 1, 1970.

1
Select the first result cell

Click the empty cell where the converted date should appear, for example C2, next to the first timestamp in A2.

2
Enter the DATE conversion formula

Type =DATE(1970,1,1)+A2/86400000 and press Enter. Adjust A2 to the actual first timestamp cell.

3
Format the result as a date or date-time

With the result cell selected, press Ctrl+1 to open Format Cells, choose Date or Custom, and pick a format such as yyyy-mm-dd hh:mm:ss.

4
Fill the formula down the data range

Drag the fill handle from the result cell downward to apply the formula to all remaining timestamp rows.

Convert Unix milliseconds with the DATE formula and date formatting
Result is an Excel serial date: The formula returns a numeric Excel date serial, so applying date formatting is required to display it as a readable date or date-time.
Direct fix in WPS Spreadsheets

Convert Unix millisecond timestamps to dates directly in WPS Spreadsheets

WPS Spreadsheets can complete this conversion with a simple formula and standard date formatting, so you can clean CSV exports and analyze timestamps without leaving the spreadsheet.

  1. 1. Open the CSV file in WPS Spreadsheets: Launch WPS Office, click Open, and select the CSV file containing the Unix millisecond timestamps.
  2. 2. Insert a helper column for converted dates: Click the column letter next to your timestamp column, right-click, and choose Insert to create a new column.
  3. 3. Enter the DATE formula: In the first cell of the helper column, type =DATE(1970,1,1)+A2/86400000 and press Enter.
  4. 4. Apply date formatting and fill down: Press Ctrl+1, set the desired Date or Custom format, then drag the fill handle down through the dataset.
No external converter or script is requiredUses a familiar Excel-compatible DATE formulaPreserves millisecond precision with custom date-time formattingWorks with .xlsx, .xls, and CSV files
microsoft office alternative - wps office

Frequently Asked Questions

Why does my CSV date show as 1.65777E+12 in WPS Spreadsheets?

The value is a Unix timestamp in milliseconds since January 1, 1970. Spreadsheets display large numbers in scientific notation until you convert and format them as dates.

Can this formula handle Unix timestamps in seconds instead of milliseconds?

Yes. For Unix seconds, use =DATE(1970,1,1)+A2/86400 instead of dividing by 86,400,000.

How do I show both date and time after converting?

Select the formula cells, press Ctrl+1, choose Custom, and enter a format such as yyyy-mm-dd hh:mm:ss.

Will the conversion update if I change the original timestamp?

Yes. The formula references the timestamp cell, so whenever the original Unix millisecond value changes, the converted date updates automatically.

Does this formula work in Microsoft Excel too?

Yes. The DATE formula and the 86,400,000 divisor work the same way in WPS Spreadsheets and Microsoft Excel because both store dates as serial numbers.