← All free tools Time converter tools

Date to Unix Timestamp

Convert a date and time in any timezone to a Unix timestamp.

About this tool

The date to Unix timestamp converter turns a date and time into a Unix timestamp: the number of seconds since 1 January 1970 UTC. Pick the time zone the date is in, and you get the timestamp in seconds and in milliseconds, plus the same moment in UTC, ISO 8601 and RFC 2822.

How to convert a date

  1. Choose the date and the time.
  2. Choose the time zone. It starts on yours; every zone is in the list, from UTC to Asia/Karachi and America/New_York.
  3. Copy the timestamp in seconds or milliseconds.

Why the time zone matters

The same clock time is a different moment in different places: 9:00 in London and 9:00 in Karachi are 4 or 5 hours apart, depending on daylight saving time. A timestamp is one exact moment everywhere, so the converter needs to know which zone your date is in. Daylight saving changes are worked out for you.

When you need a timestamp

  • Databases and APIs that store or ask for times as numbers.
  • Scheduling: times for cron jobs, scheduled posts and expiring links.
  • Testing: making a token or a cookie expire at a set time.
  • Spreadsheets and logs that need a sortable, time-zone-free time.

Use seconds for Unix, PHP, Python and most databases, and milliseconds for JavaScript and Java.

Have a project in mind?

Have a brand or a product to grow?