Date to Unix Timestamp
A date to Unix timestamp converter is a tool or function that converts a given date and time to a Unix timestamp format. A Unix timestamp is a numeric representation of time in seconds that has elapsed since January 1, 1970, 00:00:00 UTC.
The formula to convert a date to Unix timestamp is:
Unix timestamp = (date - January 1, 1970, 00:00:00 UTC) / total number of seconds in a day
Here, "date" is the date and time to be converted to Unix timestamp, and "total number of seconds in a day" is 86,400 seconds (24 hours x 60 minutes x 60 seconds).
For example, to convert the date and time "September 1, 2021, 12:00:00 PM" to Unix timestamp, we can use the following formula:
Unix timestamp = (September 1, 2021, 12:00:00 PM - January 1, 1970, 00:00:00 UTC) / 86,400
= (1630492800 - 0) / 86,400
= 18862.5
Therefore, the Unix timestamp for "September 1, 2021, 12:00:00 PM" is 18862.5.
Similar tools
Convert a unix timestamp to UTC and your local date.
Popular tools
Easily convert Bytes (B) to Nibbles (nibble) with this simple convertor.
Easily convert Bytes (B) to Pebibytes (PiB) with this simple convertor.
Transform base64 code into stunning images instantly! Our base64 to image tool is the easiest and fastest way to convert your code into eye-catching visuals.
Easily convert Bits (b) to Terabytes (TB) with this simple convertor.
Easily convert Kilobytes (KB) to Kilobits (Kb) with this simple convertor.
Easily convert Kibibits (Kib) to Tebibytes (TiB) with this simple convertor.