Blog
Custom Print on Demand Apparel — Free Storefront for Your Business
Wild & Free Tools

Date to Unix Timestamp Converter — Free Online Tool

Last updated: April 20266 min readDeveloper Tools

Enter a date, get the Unix timestamp in seconds and milliseconds. Useful when setting expiration times, building API requests, or configuring cron schedules.

Convert a Date to Unix Timestamp

  1. Open the Timestamp Converter
  2. Enter a date and time (e.g., 2026-04-06 14:30:00)
  3. Read the timestamp in seconds and milliseconds

Date in, timestamp out. Instant and free.

Convert Now →

Quick Reference Dates

Date (UTC)SecondsMilliseconds
Jan 1, 2024 00:00:0017040672001704067200000
Jul 1, 2024 00:00:0017197920001719792000000
Jan 1, 2025 00:00:0017356896001735689600000
Jan 1, 2026 00:00:0017672256001767225600000
Jan 1, 2030 00:00:0018934560001893456000000

When You Need Date-to-Timestamp Conversion

Setting JWT Expiration

When creating a JWT, the exp claim requires a Unix timestamp. "Expire in 24 hours" means: current timestamp + 86400. "Expire on April 10, 2026" means you need the epoch value for that date. Convert it, paste it into your token builder.

API Request Parameters

Many APIs accept date filters as timestamps: /events?after=1712345678&before=1712432078. Converting your target dates to timestamps is the first step in building these queries.

Database Queries

Querying records between two dates in a database that stores timestamps: SELECT * FROM orders WHERE created_at BETWEEN 1704067200 AND 1706745600. Convert your date range to timestamps first.

Cron and Scheduling

Some schedulers accept "run at timestamp X" rather than cron expressions. Convert your target date to a timestamp for one-time scheduled tasks. For recurring schedules, check the Cron Generator.

Date to Timestamp in Code

Timezone Considerations

Unix timestamps are always UTC. When you enter "April 6, 2026 at 2:30 PM" the question is: 2:30 PM in which timezone? If you mean UTC, the timestamp is one value. If you mean EST (UTC-5), the timestamp is 5 hours later in UTC terms.

Our tool uses your browser's local timezone by default. If you need UTC specifically, enter the date as UTC or adjust accordingly.

Related: JWT Decoder to inspect token timestamps, Base64 Decoder for encoded API data.

Launch Your Own Clothing Brand — No Inventory, No Risk