---
title: "Unix Timestamp to Date action for ActionClip"
canonical_url: "https://actionclip.app/actions/unix-timestamp-to-date"
document_type: "standalone_action"
official: true
action_count: 1
catalog_schema_version: 1
catalog_revision: "2026-08-21.1"
catalog_published_at: "2026-08-20T18:50:00Z"
---

# Unix Timestamp to Date action for ActionClip

Convert Unix seconds or milliseconds to a UTC date.

## What it does

Validates numeric input, automatically distinguishes common second and millisecond timestamps, and returns a stable ISO-style UTC result.

## Action details

| Field | Value |
| --- | --- |
| Category | Developer Tools |
| Action type | JavaScript |
| Result | Copy the result |
| Internet | Not required |

## Action and outcome

| Action | Outcome |
| --- | --- |
| **Unix Timestamp to Date** — Selected text: 1535438729 | 2018-08-28 06:45:29 UTC |

## How to convert Unix seconds or milliseconds to a UTC date with ActionClip

1. Select the text you want to use.
2. Choose **Unix Timestamp to Date** from ActionClip.
3. Review the result, then copy it where you need it.

## Requirements

No setup required.

## Privacy

Runs locally in ActionClip’s JavaScript sandbox. Selected text does not leave your Mac.

## Action configuration

````javascript
function run(selected_text) {
  const input = selected_text.trim().replace(/\s+/g, "");
  if (!/^[+-]?\d+(?:\.\d+)?$/.test(input)) {
    throw new Error("Enter a Unix timestamp in seconds or milliseconds.");
  }
  const numeric = Number(input);
  if (!Number.isFinite(numeric)) throw new Error("Timestamp is outside the supported range.");
  const milliseconds = Math.abs(numeric) >= 100000000000 ? numeric : numeric * 1000;
  const date = new Date(milliseconds);
  if (!Number.isFinite(date.getTime())) throw new Error("Timestamp is outside the supported range.");
  return date.toISOString().replace("T", " ").replace(/\.000Z$/, " UTC").replace(/Z$/, " UTC");
}
````

## Links

- [HTML listing](https://actionclip.app/actions/unix-timestamp-to-date)
- [Download action definition](https://actionclip.app/actions/unix-timestamp-to-date.actionclip)
- [Browse Developer Tools actions](https://actionclip.app/marketplace#marketplace-developerTools)
- [All Marketplace listings](https://actionclip.app/marketplace)
