100% local processing — your files and data never leave this browser. No uploads, no server storage.

OnboxTools

Free · Browser-only · No upload

Convert date to unix timestamp online

Date to epoch, datetime to unix timestamp — seconds and milliseconds

Pick a calendar date and time to convert date to unix timestamp values for APIs, databases, and test fixtures. Outputs include unix seconds, unix milliseconds, and ISO 8601 UTC — all computed locally in your browser.

The datetime picker uses your local IANA timezone. For the reverse direction, open Unix Time to Date from the navigation bar above.

Unix time to dateDate to unix timestampTime zone converter
Date & time

More Text Utilities

🔓
Base64 Decoder
🧬
Base64 Encoder
🔡
Case Converter
Cron Generator
🎨
CSS Minifier
📐
CSS Unminifier
📆
Date Format Converter
📅
Date to Unix
🔎
Find and Replace
🛡️
HTML Escape
📰
HTML Minifier
↩️
HTML to Markdown
🔓
HTML Unescape
📄
HTML Unminifier
📋
Markdown Preview
🔄
Markdown to HTML
🎲
Random Number
🔤
Random String
🔍
Regex Tester
🧹
Remove All Whitespace
↩️
Reverse Text
✂️
Split String
⚖️
Text Compare
🔁
Text Repeater
📖
Text Viewer
🌍
Time Zone Converter
🕐
Unix Time to Date
🔗
URL Encoder
🔤
UTF-8 Decoder
🌐
UTF-8 Encoder
📊
Word Counter

Browse by category

Date to unix formulas

seconds = Math.floor(new Date(localDatetime).getTime() / 1000). milliseconds = new Date(localDatetime).getTime(). Linux: date -d 'YYYY-MM-DD HH:MM:SS' +%s.

seconds = Math.floor(Date.parse(isoLocal) / 1000) ms = Date.parse(isoLocal)

Worked example

2026-06-12 15:07:15 in Asia/Calcutta maps to unix seconds 1781257035 and ISO 2026-06-12T09:37:15.000Z — the same instant shown on the Unix Time to Date page.

Output formats

FromToResult
Picker (local)Unix seconds10 digits
Picker (local)Unix ms13 digits
Picker (local)ISO UTC...Z suffix

Guide to converting dates to unix epoch timestamps

When you need date to unix conversion

APIs, cron schedulers, and ORMs often expect a unix timestamp instead of a formatted string. When you convert date to unix timestamp, you turn a wall-clock moment into the integer seconds or milliseconds most systems store internally.

This date to epoch converter is useful for seeding test data, writing migration scripts, or checking what integer MongoDB or PostgreSQL will persist for a given datetime. Everything runs client-side — paste results into tickets without sending calendar data to a third party.

How to convert date to unix timestamp

Select date and time with the datetime-local picker. The tool immediately shows unix seconds, unix milliseconds, and ISO UTC in a two-column output grid. Copy whichever format your stack expects.

Timezone matters: the picker interprets input in your browser's local zone. A meeting at 15:00 in Asia/Kolkata produces a different epoch integer than 15:00 in America/New_York. Document which zone you used when sharing numbers with teammates.

To convert time to unix timestamp for a UTC-specific value, mentally offset or use our Time Zone Converter after generating the local result.

Date to timestamp in databases and code

MongoDB date to unix timestamp comparisons often use Math.floor(date.getTime() / 1000). PostgreSQL unix timestamp columns frequently store seconds. Python unix to datetime and the reverse use datetime.fromtimestamp and .timestamp().

Snowflake convert unix timestamp to date and the inverse appear in analytics pipelines — verify whether your warehouse stores seconds or milliseconds before pasting into production SQL.

Human date to timestamp workflows in support teams start here: pick the customer's reported local time, copy seconds, and compare against raw log integers on the Unix Time to Date page.

Seconds, milliseconds, and ISO output

Unix seconds are ten digits for modern dates; milliseconds add three digits. APIs like Stripe timestamps often use seconds. JavaScript Date.now() returns milliseconds — double-check your SDK docs before inserting values.

ISO 8601 output ends with Z for UTC, which disambiguates storage format in JSON payloads. Pair unix seconds with ISO when writing API docs or runbooks.

Privacy and related tools

Calendar picks for unreleased features or customer incidents stay on your machine. Clear the picker on shared computers when done.

Use Unix Time to Date to decode log integers back to readable clocks. Use Time Zone Converter when you need the same instant expressed in two global regions.

Detailed guide

Seeding test fixtures

Pick the scenario datetime, copy unix seconds into your factory JSON, and verify with Unix Time to Date before merging.

Matching GNU date output

Run date -d 'your string' +%s on Linux and compare to this tool. Mismatches usually mean timezone interpretation differed.

Common questions

Date to Unix Timestamp FAQ

How do I convert date to unix timestamp online?

Use the datetime picker above. This date to unix timestamp tool outputs seconds, milliseconds, and ISO UTC instantly.

How do I convert date to epoch?

Date to epoch is the same operation — pick your datetime and copy unix seconds from the highlighted output row.

Does the picker use local or UTC time?

Local timezone of your browser. ISO output always shows the equivalent UTC instant with a Z suffix.

Datetime to unix timestamp for PostgreSQL?

Copy unix seconds into extract(epoch from ...) comparisons or INSERT statements. Confirm your column stores seconds, not milliseconds.

Is data uploaded?

No. Date to unix timestamp conversion uses the JavaScript Date object locally.

Does the Date to Unix Timestamp send my input to a server?

Yes. Everything runs in your browser. Your input is not uploaded, logged, or stored on our servers.

Do I need an account?

No account or sign-up is required. Open the page and start using the tool immediately.