Setting an expiry field
A human date converts to the epoch seconds a token or record expects for its expiry.
Convert a date and time to a Unix timestamp in your browser.
Maintained by Roshan.
Converts date and time to unix timestamp in this tab, with nothing sent anywhere.
Find related browser-local tools for nearby tasks without starting another search.
Browse all general convertersTurning a date into a Unix timestamp is the reverse task, and it is what you do when a human-readable moment needs to go into a system that stores time as a number: setting an expiry, querying a database by a date range, or filling in a field that expects epoch seconds. A timestamp is a single count of seconds since 1970, which is why software prefers it - two timestamps can be compared and subtracted with plain arithmetic, where two formatted dates cannot. This tool reads a date written in the common forms - a plain date, or a date with a time - interprets it, and returns the timestamp in seconds. Because the interpretation of a date without an explicit timezone depends on context, being aware of how yours is read is worth a moment's thought.
A human date converts to the epoch seconds a token or record expects for its expiry.
Convert the start and end dates to timestamps to filter records stored as epoch time.
Seconds, the most common scale. Multiply by a thousand if your system wants milliseconds.
In a default interpretation. For certainty, include an explicit timezone or write the date in UTC.
Common ones - a plain date like 2024-03-17, or a date with a time. An unambiguous format avoids day-month confusion.
Yes. A date with a time converts to the timestamp of that exact moment.
Convert a Unix timestamp to a readable UTC date in your browser, handling seconds and milliseconds.
Convert a decimal number to hexadecimal in your browser, with full precision for large values.
Convert a hexadecimal number to decimal in your browser, with full precision for large values.