Free Date to Unix Timestamp Converter
The Date to Unix Timestamp Converter turns a calendar date and time into a Unix epoch timestamp. It outputs both seconds and milliseconds, using your local time zone.
Read an epoch value back with Unix to Date, shift it using Add / Subtract Days, or change its zone with the Timezone Converter.
How to use the Date to Unix
- 1 Pick a date and time using the date field and the time field.
- 2 Choose whether the input should be interpreted as UTC or as your local timezone — this is the setting that changes the answer.
- 3 Read the resulting timestamp in both seconds and milliseconds.
- 4 Copy whichever form your system expects.
Calendar date conversion to Unix epoch integers
The Date to Unix converter translates calendar dates, times, and timezones into an integer Unix epoch timestamp representing total elapsed seconds since January 1, 1970 UTC. It supports custom date entry, millisecond precision, and specific timezone selection.
Generating epoch timestamps is required when configuring cache expiration headers (`Cache-Control`), scheduling cron jobs, setting database query ranges, or signing authentication tokens. The converter outputs both standard 10-digit second timestamps and 13-digit millisecond timestamps commonly required by JavaScript engines.
- Transforms calendar dates and times into 10-digit second and 13-digit millisecond epoch timestamps.
- Supports exact UTC and custom localized timezone configurations.
- Essential for configuring HTTP caching headers, database ranges, and API tokens.
- Eliminates daylight saving time ambiguity when scheduling system events.
Frequently asked questions
Why do I get a different timestamp for the same date?
Because of the timezone setting. The same wall-clock reading in Tokyo and in New York is a different instant, so it produces a different timestamp. Decide first whether your value is a local time or UTC, then set the toggle to match — most APIs expect UTC.
Should I store seconds or milliseconds?
Check what the consuming system wants. Unix itself, most databases and Python use seconds; JavaScript and Java use milliseconds. Storing the wrong one is the single most common timestamp bug, and it is usually spotted only when the date is wildly wrong.
Does the tool account for daylight saving time?
When you choose your local timezone, yes — the browser applies the correct offset for that specific date, including DST where it applies. When you choose UTC there is no DST to apply, which is one reason storing UTC avoids a whole class of bugs.
Related Unit & Data Converters
You might also need
Tools from other categories that people pair with the Date to Unix: