Date & Time to Unix Timestamp Converter

Unix (seconds)
Unix (milliseconds)
UTC date & time
Local date & time

What is Date & Time to Unix Timestamp Converter

This tool converts any date and time you choose into a Unix timestamp — the number of seconds or milliseconds since January 1, 1970 (UTC). Unix timestamps are used in databases, APIs, log files, and nearly every programming language to represent moments in time in a compact, timezone-agnostic format. You can choose between UTC and your local timezone for the conversion.

How to use

  1. Select a date using the date picker.
  2. Enter the time in HH:MM format using the time field.
  3. Choose UTC or Local as your timezone reference.
  4. Read the Unix timestamp in seconds and milliseconds from the output rows.
  5. Click Now to load the current date and time, or use the link at the bottom to go to the reverse converter (Unix timestamp → date).

When to use it

Need to drop a fixed event date into a database or API call? Set December 25, 2024 at midnight UTC, pick UTC, and you get 1735084800 back to paste straight into your code or query. It saves you the mental math of counting seconds since 1970 and keeps the value the same no matter where your server runs.

Frequently asked questions

What is a Unix timestamp?

A Unix timestamp is the number of seconds (or milliseconds) elapsed since January 1, 1970 at 00:00:00 UTC, known as the Unix Epoch. It is a universally accepted way to store time in programming systems without worrying about time zones.

Should I use UTC or local time?

Use UTC when you need the timestamp to represent a specific universal moment regardless of time zone — this is standard for databases and APIs. Use local if you want to convert a time as you experience it in your time zone.

What is the difference between seconds and milliseconds output?

The seconds output is the standard Unix timestamp used in most systems. The milliseconds output (seconds × 1000) is required by some systems like JavaScript's Date.now(), Java, and many logging systems that need sub-second precision.

Is there a minimum or maximum date I can convert?

Practically, this tool handles any date your browser's date input supports (typically 1970 to 9999). For reliable results in programming contexts, stay within the 32-bit range (1970–2038) or use a 64-bit aware system.

How do I convert just a date without a specific time?

Set the time field to 00:00 to get the timestamp for midnight at the start of that day. With UTC selected, this gives you the canonical start-of-day timestamp that database queries commonly use.

Can I share this tool with my inputs pre-filled?

Yes. The URL updates automatically as you type. Copy it from the address bar or use the Share button — anyone who opens the link will see your exact inputs ready to go.

Related tools

Latest posts