EPOCHTODATE(timestamp, [unit])One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.
timestamp:
The epoch timestamp (in seconds) that you want to convert to a date format.
unit:
(Optional) The unit of time to use for the conversion. This can specify the granularity of the date output, such as "days", "hours", "minutes", etc. If omitted, the default unit is "days".
The EPOCHTODATE function in Google Sheets is a useful formula that converts a Unix timestamp (also known as Epoch time) into a human-readable date format. Unix timestamps represent the number of seconds that have elapsed since January 1, 1970 (the Unix epoch). This function is particularly helpful when working with data that includes timestamps, such as logs or records from web applications.
In simpler terms, EPOCHTODATE allows you to take a numeric value representing time and transform it into a date that is easy to understand and work with.
Imagine you have a dataset containing Unix timestamps that represent when certain events occurred:
| EventID | EventName | Timestamp |
|---|---|---|
| 1 | Event A | 1633072800 |
| 2 | Event B | 1633159200 |
| 3 | Event C | 1633245600 |
You want to convert these timestamps into a readable date format to better understand when each event took place.
To achieve this, you would use the EPOCHTODATE function as follows:
=EPOCHTODATE(B2)In this formula:
B2 is the cell containing the Unix timestamp from the Events Table.When you apply the EPOCHTODATE formula to the Events Table, the output would look like this:
| EventID | EventName | Timestamp | Date |
|---|---|---|---|
| 1 | Event A | 1633072800 | 2021-10-01 |
| 2 | Event B | 1633159200 | 2021-10-02 |
| 3 | Event C | 1633245600 | 2021-10-03 |
As you can see, the Unix timestamps have been successfully converted into a more understandable date format.
EPOCHTODATE is beneficial because it simplifies the process of interpreting Unix timestamps. It allows users to quickly convert and visualize time data without needing to perform complex calculations or conversions manually. This function enhances data readability and usability, making it easier to analyze and report on time-sensitive information.
EPOCHTODATE is an essential function for anyone working with time data in Google Sheets, providing a straightforward way to enhance data analysis and reporting capabilities.
Happy spreadsheeting!
You have a table where Column A contains timestamps in epoch format. You can use EPOCHTODATE to convert these timestamps into readable dates in Column B. This simplifies data analysis by making it easier to interpret time-related information.
Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.
Browse our complete library of Google Sheets formula guides
Compare your options
Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.
AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.