Skip to content

Date to Timestamp Converter

Type a date in almost any common format, choose the zone it is written in, and get the Unix timestamp in seconds and milliseconds.

Processed locally in your browser

Options

Any IANA name, for example Asia/Kathmandu or America/Argentina/Cordoba.

Only matters for dates like 03/04/2024 where both parts are 12 or less.

ISO 8601, RFC 2822, 15/03/2024, March 15, 2024 2:30 PM… A date without offset is read in the chosen zone.0 chars · 0 lines
The result will appear here.

What is Date to Timestamp Converter?

Converting a date to a timestamp requires two decisions: how to read the text and which time zone it belongs to. This tool parses ISO 8601 (2024-03-15T14:30:00Z), slash and dot formats (2024/03/15, 15.03.2024), RFC 2822, 12-hour times with AM/PM, and month names in English, French and Spanish, with offsets such as Z or +02:00.

When the text carries no offset, it is read in the IANA time zone you select, including daylight saving rules. Numeric dates like 03/04/2024 are ambiguous, so a "numeric date order" option lets you choose day-first or month-first; on Auto it guesses and warns you.

How does it work?

  1. Enter one date and time per line, for example 2024-03-15 14:30:00 or 15 mars 2024 14:30.
  2. Choose the time zone the dates are written in, or type any IANA name.
  3. For dates like 03/04/2024, set the numeric date order to day-first or month-first.
  4. Read the seconds and milliseconds, and copy the text output in the unit you selected.

Common use cases

  • Building an epoch value for a database query that filters on created_at.
  • Computing the exp claim of a test JWT from a human-readable expiry date.
  • Converting a European DD/MM/YYYY date from a spreadsheet into a timestamp without US-style confusion.
  • Scheduling a job at a specific wall-clock time in another time zone.

Examples

Try this input in the tool above:

Input
2024-03-15 14:30:00
Output
1710513000

Privacy

Date to Timestamp Converter runs entirely in your browser. The text or files you provide are processed on your device and are not uploaded, logged or stored on our servers.

Limitations

Ambiguous numeric dates need your input on the day/month order, and a local time falling in a daylight saving gap does not exist: it is moved forward and reported with a warning.

Frequently asked questions

Which time zone is used when I do not type one?

The one selected in the zone option, UTC by default. An explicit Z or offset written in the date always wins over the option.

How is 03/04/2024 interpreted?

With Auto, the tool uses month-first when the separator is a slash and day-first with dots or hyphens, unless one part is greater than 12, and it shows a warning. Set the order option to be explicit.

Are milliseconds preserved?

Yes. A fraction such as 14:30:00.250 is kept, so the millisecond output ends in 250. Digits beyond milliseconds are truncated.

More tools in Date & Time →