skip to Main Content

How to Convert Unix Timestamps to Dates in Google Sheets & Airtable

In this quick how-to, we’ll explain what Unix timestamps are and, more importantly, how to convert Unix timestamps to dates in Google Sheets and Airtable.

How to Convert Unix Timestamps to Dates in Any App Feature Image

If you’re unfamiliar with Unix and Epoch time, strings of numbers like 1671408000 probably just look like computer gibberish. However, as intimidating as those numbers might appear, we promise you, you haven’t slipped into the matrix—not yet, at least.

You’ve come to the right place to learn all about Unix and Epoch time and how to convert those strings of numbers into date and time formats that don’t make your head spin.

At the end of this quick tutorial, we’ll show you some cool ways to use Unix timestamps in everyday workflows.

What Is a Unix Timestamp?


Unix time is simply a measurement of the number of seconds that have elapsed since January 1, 1970. Seriously. That’s it. That’s what all the fuss is about.

Given that there are 24 hours in a day and that each hour consists of 60 minutes and that, in turn, each minute consists of 60 seconds, each day in Unix time has a value of 86,400 (i.e., 24 × 60 × 60).

To give you a better idea, here are a few examples of dates and times represented in Unix time:

January 1, 1970 12:00:00 AM —— 0

March 11, 1989 3:00:00 PM —— 605631600

July 16, 2006 10:00:00 AM —— 1153044000

October 5, 2022 7:41:00 PM —— 1633462860

As a fun exercise, click here to learn more about Unix time and check out the running Coordinated Universal Time (UTC) clock, converter and reference chart.

What Is Epoch Time?


In your search to make sense of number strings like 788400000, you may have across the terms Epoch, Epoch time or Unix epoch. While computer programmers often use these terms interchangeably, it’s worth noting that Unix time and Epoch time are not necessarily the same thing.

In computing, an epoch refers to the date and time relative to which a computer’s internal clock and system calculates its timestamps. In other words, an epoch can be any date with time 00:00:00.

By that definition, the Unix epoch is, as we have recently discovered, January 1, 1970 00:00:00.

Because so many computing systems and programming languages use the Unix epoch, it is practically ubiquitous. However, other notable epochs include January 1, 1601 (Windows API) and January 1, 1900 (Network Time Protocol).

There’s also the Coffee Epoch (a.k.a., the How We Start Our Day Epoch).

How to Convert Unix Time to Dates in Google Sheets


If you can multiply, divide and add, you can easily convert Unix time into a date format that doesn’t resemble coordinates on a global positioning system.

Step 1: Set Up Your Google Sheet

How you configure your spreadsheet will depend on your own needs. For illustrative purposes, we’ve set up a simple spreadsheet that an eCommerce business might have.

Google Sheets worksheet titled "Unix Time Converter" with five columns: Order ID, Customer Email, Date and Time (Unix), Date and Time (UTC), and Date and Time (Local).

We’ve labeled Column C “Date and Time Unix”. This will be the column where we input our Unix timestamps. Given that Unix timestamps only exist in integers, you can format the cells accordingly. To do so, select the column that you’ll use for Unixstamps then navigate to Format > Number > Number and reduce the decimal places by two (2).

A Google Sheets worksheet with the "Format" menu open. The user is selecting Format > Number > Number to apply number formatting.

Similarly, for any columns in your worksheet where you will input dates, change the format to “Date time”. Date time.

A Google Sheets worksheet with the "Format" menu open. The user is selecting Format > Number > Date time to apply number formatting.

Step 2: Convert Unix Time to Dates

Unfortunately, there are no simple formulas for converting Unix time into money. But there is an easy formula for converting any Unix timestamp into a date.

To convert Unix time to a date in Google Sheets, use the “epochtodate” formula. To use the “epochtodate” formula, select the cell where you want to display dates. Copy and paste the formula below:

=epochtodate([cell], 1)

The first part of the formula, “timestamp”, is the Unix time integer. Replace “[cell]” in the formula above with the cell containing your Unix timestamp in your own worksheet. The second value, “time_unit”, denotes whether the Unix time is in seconds, milliseconds, or microsends.

A Google Sheets worksheet shows a formula being entered in cell D2: =epochtodate(C2, 1), which converts a Unix timestamp in cell C2 to a human-readable date.

That’s it! You’ve just converted Unix time to dates—and it only took you two steps!

It’s not exactly time travel but it is a pretty nifty time conversion trick.

Note: You can change the format of the cells in your results column (the column we’ve labeled Date and Time) by navigating to Format > Number > Custom date and time.

A Google Sheets worksheet with the "Format" menu open. The user is selecting Format > Number > Custom date time to apply number formatting.

How to Convert Unix Time to Dates in Airtable


If you’re using a database like Airtable, you can still convert Unix timestamps to dates. In fact, with AirTable’s processing power, it wouldn’t surprise us if you did, incidentally, discover the formula for time travel.

Step 1: Configure Your Base

Just as with Google Sheets, the exact configuration of your Airtable base will depend on your specific needs. Regardless, you’ll have to include a table with at least two columns; “Unix Time” for inputting Unix timestamp values, and “Date and Time” for displaying dates:

Airtable database with "Unix Time" and "Date and Time" fields, configured to convert Unix timestamps to dates.

Step 2: Edit Your Unit Time Field

Either create or edit a field to be a “Number” with no decimal places and no thousand separator.

A settings panel in Airtable for a field labeled "Unix Time". The user has selected a “Number” field with no decimals or thousands separator to match Unix timestamp formatting

This will be the field with your Unix timestamps.

Step 3: Edit Your Date Field

Edit or create a field to be a “Formula”. Manually type (do not copy and paste) the following formula into the “Formula” field:

“DATEDADD(‘1/1/1970’,{Unix Time},’seconds’)
A settings panel in Airtable for a field labeled "Date and Time". The user has selected a “Formula” field and entered a “DATEDADD” formula.

Note: You may need to edit the formula above depending on what name you’ve given to your Unix Time field. If you’ve chosen a name other than Unix Time, then replace {Unix Time} with {Your Field Name} and leave the rest of the formula unchanged.

Test out your Airtable time converter with the dates and times from our previous example.

Airtable database with "Unix Time" and "Date and Time" fields. The user is testing a formula to convert Unix timestamps to dates.

Note: Airtable stores data in Greenwich Mean Time (GMT). This means that your date will be displayed in GMT as well. If you want to adjust the timezone, you can use this slight variation of the same formula: DATEADD(DATEADD(‘1/1/1970’, {Unix Time}, ‘seconds’), -5, ‘hours’). Replace “-5” with your desired timezone’s GMT offset. Remember, you must type the formula in Airtable. Do not copy and paste it.

Save (Unix) Time with Uncanny Automator


Now that you’ve mastered the art of converting time, you can start saving it.

Uncanny Automator is the #1 automation and integration plugin for WordPress websites. Using simple combinations of triggers and actions, you can connect all of your favorite apps and plugins, enabling you to work less, do more, and cut costs while you’re at it.

Uncanny Automator mascot, U-Bot.

So, who exactly is Automator for? Well, with a lightweight free version, Automator is for every WordPress user.

  • eCommerce Automation: Track sales (anonymous shoppers or logged-in users), create AI-powered personal shopping assistants, integrate with your CRM, manage inventory at scale, synchronize shops across sites. Anything to help you work less and sell more.
  • Marketing Automation: Create seamless integrations with your CRM and any of your other apps and plugins. From capturing leads to calculating lifetime value, Automator gives you the power to create fully customizable customer profiles, automate segmentation, and personalize communications.
  • Content Automation: Automate the creation of blog posts, SEO-friendly titles, excerpts, product descriptions, social media blurbs, and even AI images right from your WordPress website. No other plugin lets you type less to say more.
  • Membership Automation: From registering new members to managing access, Automator makes it easy to turn your WordPress website into a walled garden. Addons like Restrict Content and User Lists give you all of the functionality necessary to connect with your members.
  • Everything Else: Whatever tasks you need to perform on your WordPress website, Automator’s U-Bot has you covered. Whether you want to automate support ticket triage or webinar enrollment, Automator is the tool for the job.

Ready to upgrade your WordPress workflows?

Try Automator Pro—integrate anything, automate everything >>>

Google Sheets and Airtable are just two of Automator’s exhaustive list of the most popular and powerful integrations. See which of your apps and plugins you can start integrating and automating today.

Getting Started With Automator


For WordPress users, converting Unix time to different date formats and time zones can seem daunting. However, with Automator, it can all happen behind the scenes as you can focus on what matters most—your customers, your content, your company.

Here’s how to get started converting Unix timestamps to dates in WordPress with Automator:

  1. Install and Activate Automator on your WordPress website. Setting up is like any other plugin, however you can find detailed instructions here.
  2. Navigate to Automator > Add new, select your recipe type, and name your new recipe.
  3. Configure your trigger. For example, if you run a Woo store, you might select Woo > A user pays for, completes, lands on a thank you page for an order with a product.
  4. Configure your action. Click Add action and select Google Sheets > Create a row in a Google Sheet.
  5. Select the “Spreadsheet” and “Worksheet” where you want to send your Unix timestamps. Automator will load the columns. (Note: Automator will treat the first value in each column as that column’s title.)
  6. Fill in the values using tokens (i.e., dynamic data from your WordPress website and from within recipes) and static data as necessary. To use a token, click on the Asterisk in a field and select the corresponding token. For example, select the “Current Unix timestamp” token.
Automator token selector, displaying a user selecting the Date and time > Current Unix timestamp token.
  1. Automator allows you to enter Google Sheets formulas in the “Value” cells. For example, in our “Date and Time (UTC)” cell, we have entered:
=epochtodate({{current_unix_timestamp}}, 1)
  1. To adjust the time zone, you can enter this formula:
=epochtodate({{current_unix_timestamp}}, 1)-time(5,0,0)
WooCommerce tokens mapped to Google Sheet columns in Automator. Unix timestamp is used to populate date fields, with =epochtodate() converting values to readable formats.
  1. Click Save and toggle your recipe from Draft to Live.
Automator recipe that creates a new row in Google Sheets when a user pays for a WooCommerce order. The recipe automatically converts Unix timestamps to dates in Google Sheets.

That’s it! You’ve successfully created a recipe that automatically converts Unix timestamps from your WordPress website to dates in Google Sheets.

Upgrade to Pro and Save Even More Time


If you have Automator Pro, you can skip all of the formulas and take advantage of Automator’s Formatter integration.

Formatter integration in Uncanny Automator set to convert a date from an automatically recognized format into the format “Mmm DD, YYYY” (e.g., May 15, 2025). The action is in draft mode.

Simply select the “Input”, the format of the original date and time, and then the output format that you are looking for.

Upgrade to Automator Pro >>>

Frequently Asked Questions

Conclusion


With your new knowledge of Unix timestamps and the power of Automator at your fingertips, you may just become a master horologist!

How do you intend to use your Unix timestamps? What are some of the workflows that you would like to see? Let us know in the comments section below. Until then, do what the Unix clock does and keep ticking!

Happy automating!

author avatar
Brendan Da Costa
Brendan Da Costa is a WordPress content writer with a Shakespearean-level gift of gab (his words, not ours). He left a successful career in economics to pursue his passion for writing and discovered the wonderful world of WordPress while building his own website to showcase his work. As a self-taught enthusiast who spends more time tinkering with plugins and themes than he would care to admit, Brendan writes equally for WordPress beginners and veteran developers alike. With his unique blend of expertise and creativity, he continues to elevate the digital landscape one WordPress article at a time.

This Post Has 0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This page may contain affiliate links. Once in a while, we may earn a commission from those links. But with or without commissions, we only recommend products we like.
Back To Top