OnboxTools
Local processingNo uploadFree
Report bug

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.

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

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.

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.

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.

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.