Skip to content

Datetime Converter

Convert between local datetime, UTC, and Unix timestamp with timezone offset.

By CalcGenius Editorial TeamLast reviewed August 28, 20253 min read
Datetime Converter

Enter the wall-clock time as observed in the source time zone (not UTC).

📊
Enter your values and click Convert

About

The datetime converter translates a wall-clock datetime from one time zone to another. The fundamental challenge is that a wall-clock time like "14:30" is ambiguous without a time zone — it could be 14:30 in New York, London, or Tokyo, each representing a different UTC instant (the "true" moment in time). The converter disambiguates the input by declaring the source time zone, computes the corresponding UTC instant, and formats that instant in the target time zone.

The conversion uses the IANA Time Zone Database (also called the tz database or zoneinfo), accessed via JavaScript'sIntl.DateTimeFormat with the timeZoneoption. The IANA database is the canonical source of time zone information — used by virtually all operating systems, programming languages, and databases — and tracks historical and current DST rules for about 400 named zones (many are aliases). Updates are released several times per year as governments change their time zones (Russia in 2014, Chile in 2015, North Korea in 2018, etc.).

The trick to converting a wall-clock time in a source TZ to a UTC instant is non-trivial, because JavaScript's Date object has no built-in "parse this string in this TZ" method. The calculator uses the standard workaround: build a Date object treating the wall-clock as if it were UTC, then compute the offset between UTC and the source TZ at that instant (usingIntl.DateTimeFormat.formatToParts), and add that offset back to get the true UTC instant. This works correctly except during DST transitions (a 1-hour edge case twice per year, when the result might be off by an hour — the IANA database handles this with disambiguation rules).

Daylight Saving Time (DST) is handled automatically by the IANA database. When converting a summer datetime from US/Eastern (EDT, UTC-4) to UTC, the calculator adds 4 hours; in winter (EST, UTC-5), it adds 5 hours. DST transitions happen on different dates in different regions — US/Canada switch on the second Sunday of March and the first Sunday of November; Europe switches on the last Sundays of March and October; Southern Hemisphere zones (Australia, New Zealand, South America) switch in October and April. The IANA database tracks all of these rules and applies them automatically.

The Unix timestamp (seconds since 1970-01-01 UTC) is the universal pivot for date-time interchange. It's timezone-independent (always UTC), compact (an integer), and universally supported. Showing the Unix timestamp alongside the converted time is useful for debugging and for cross-checking conversions against other tools. The calculator also shows the UTC equivalent and the offset from UTC in the target TZ — essential for verifying that the conversion is correct.

How to Use

  1. 1
    Enter the source datetime
    Type or pick the wall-clock datetime using the datetime-local input. This represents the local time in your source time zone (not UTC).
  2. 2
    Choose the source time zone
    Use the 'From timezone' dropdown to declare which IANA time zone the source datetime represents. The most common zones (UTC, US zones, Europe, Asia, Australia) are listed.
  3. 3
    Choose the target time zone
    Use the 'To timezone' dropdown to pick the IANA time zone you want to convert to. The conversion handles DST automatically via the IANA database.
  4. 4
    Choose the output format
    Use the 'Format' dropdown to choose ISO 8601, RFC 2822, Unix timestamp, or human-readable. The hero shows the converted datetime in that format.
  5. 5
    Read the converted result and UTC equivalent
    The hero shows the converted datetime. The breakdown shows the UTC equivalent, the Unix timestamp, the offset in the target TZ, and the day of week in the target TZ.
  6. 6
    Verify with the comparison table
    The comparison table shows the same UTC instant formatted in 7+ major time zones (UTC, ET, PT, GMT, CET, JST, AEST) so you can verify the conversion is correct.

Formula

Conversion strategy — wall-clock in source TZ → UTC instant → format in target TZ:

// Step 1: Build an 'as-if-UTC' Date from the user's wall-clock parts
asIfUtc = Date.UTC(year, month − 1, day, hour, minute)

// Step 2: Compute the source TZ offset at instant asIfUtc
parts = Intl.formatToParts(asIfUtc, sourceTz)
wallClockAsIfUtc = Date.UTC(parts.year, parts.month − 1, parts.day, parts.hour, parts.minute)
offset = asIfUtc.getTime() − wallClockAsIfUtc

// Step 3: True UTC instant — asIfUtc shifted by offset
trueUtc = new Date(asIfUtc.getTime() + offset)

// Step 4: Format trueUtc in target TZ
result = Intl.DateTimeFormat({ timeZone: targetTz, ... }).format(trueUtc)

DST handling: the offset is computed at the specific instant, so it reflects DST rules correctly. No manual DST adjustment is needed.

Worked Example

Convert 2025-07-04 14:30 (America/New_York, EDT) to Europe/Paris:

  • Input wall-clock: 14:30 on July 4, 2025
  • Source TZ: America/New_York — EDT in July = UTC-4
  • asIfUtc = Date.UTC(2025, 6, 4, 14, 30) = 2025-07-04T14:30:00Z (as if UTC)
  • Wall-clock in America/New_York at asIfUtc = 10:30 on July 4, 2025 (EDT = UTC-4)
  • offset = asIfUtc − wallClockAsIfUtc = 4 hours (wall-clock is 4 hours behind UTC)
  • trueUtc = asIfUtc + 4 hours = 2025-07-04T18:30:00Z
  • Wall-clock in Europe/Paris at trueUtc = 20:30 on July 4, 2025 (CEST = UTC+2)
  • Result: 2025-07-04T20:30:00+02:00 (Paris, summer = CEST)

Convert 2025-01-15 09:00 (America/Los_Angeles, PST) to Asia/Tokyo:

  • Source TZ: America/Los_Angeles — PST in January = UTC-8
  • asIfUtc = Date.UTC(2025, 0, 15, 9, 0)
  • offset = 8 hours (LA is 8 hours behind UTC in winter)
  • trueUtc = asIfUtc + 8 hours = 2025-01-15T17:00:00Z
  • Tokyo (JST, UTC+9, no DST): wall-clock at trueUtc = 02:00 on January 16, 2025
  • Result: 2025-01-16T02:00:00+09:00 (next calendar day in Tokyo)

Tips

  • Always use IANA time zone names (e.g., 'America/New_York') instead of abbreviations (e.g., 'EST') — abbreviations are ambiguous and DST-unaware.
  • The Unix timestamp is timezone-independent — always convert to UTC instant first, then format in the target TZ. This avoids one-day-off errors during DST transitions.
  • For meeting scheduling across time zones, use the comparison table to verify the chosen time works for all participants (especially around DST transitions).
  • DST transitions happen on different dates in different regions — US/Canada switch in March/November, Europe in March/October, Southern Hemisphere in October/April.
  • Half-hour time zones (India UTC+5:30, Newfoundland UTC-3:30, Nepal UTC+5:45) require minute-precision offset math, which this calculator handles via the IANA database.

Common Mistakes

Warning

Common mistakes: (1) using timezone abbreviations like "EST" (ambiguous — could be US Eastern, Australian Eastern, or Egyptian Standard Time) — always use IANA names like "America/New_York"; (2) forgetting DST — US/Eastern is UTC-5 in winter (EST) and UTC-4 in summer (EDT); (3) treating the source datetime as UTC when it's actually local — the source TZ selector disambiguates; (4) ignoring the date component when converting across the international date line (Tokyo is "tomorrow" relative to LA); (5) assuming all time zones have whole-hour offsets — India is UTC+5:30, Nepal is UTC+5:45.

Frequently Asked Questions

What is the difference between UTC and GMT?
UTC (Coordinated Universal Time) is the modern standard, defined by atomic clocks and adjusted with leap seconds to stay within 0.9 seconds of UT1 (mean solar time at 0° longitude). GMT (Greenwich Mean Time) is a looser term often used interchangeably with UTC, but technically refers to mean solar time at the Royal Observatory in Greenwich, London. In practice, UTC and GMT have the same wall-clock time, and most IANA time zone databases treat 'GMT' and 'UTC' as equivalent for civil timekeeping.
How does the calculator handle Daylight Saving Time?
The calculator uses the IANA Time Zone Database via JavaScript's Intl.DateTimeFormat, which automatically applies DST rules for each time zone. When converting from a source TZ to a target TZ, the offset at the specific instant is computed and applied — so a 9 AM ET meeting in March (during EDT, UTC-4) converts correctly to 1 PM GMT (UTC+0). No manual DST adjustment is needed.
Why does the calculator need the source time zone?
Because a 'wall-clock' time like 14:30 is ambiguous without a time zone — it could be 14:30 in New York, London, or Tokyo, each representing a different UTC instant. The source time zone selector disambiguates the input. The calculator then converts the source TZ's wall-clock to a UTC instant, and formats that instant in the target TZ's wall-clock.
What is the IANA Time Zone Database?
The IANA Time Zone Database (also called the tz database or zoneinfo) is the canonical source of time zone information used by virtually all operating systems, programming languages, and databases. It uses names like 'America/New_York', 'Europe/Paris', 'Asia/Tokyo' (rather than abbreviations like EST/CET/JST which can be ambiguous). The database tracks historical and current DST rules, and is updated several times per year as governments change their time zones.
What is a Unix timestamp and why is it useful?
A Unix timestamp is the number of seconds since 1970-01-01 00:00:00 UTC (the Unix epoch). It's the universal pivot for date-time interchange — every major programming language and database can read it, it's timezone-independent (always UTC), and it's a compact integer. Showing the Unix timestamp alongside the converted time is useful for debugging and for cross-checking conversions against other tools.
What are the half-hour time zones?
Most time zones have whole-hour UTC offsets, but a few have half-hour (or even 45-minute) offsets: India (IST, UTC+5:30), parts of Australia (ACST, UTC+9:30), Newfoundland (NST, UTC-3:30), Nepal (UTC+5:45), and the Chatham Islands (UTC+12:45). The calculator handles these correctly via the IANA database — the offset computation includes minutes, not just hours.

UTC vs GMT

UTC (Coordinated Universal Time) is the modern timekeeping standard, based on atomic clocks (TAI) and adjusted with leap seconds to stay within 0.9 seconds of UT1 (mean solar time at 0° longitude). GMT (Greenwich Mean Time) is a looser historical term, technically the mean solar time at the Royal Observatory in Greenwich, London. In practice they're equivalent for civil timekeeping — the IANA database treats "GMT" and "UTC" as the same zone.

Time zones explained

A time zone is a region that observes a uniform standard time for legal, commercial, and social purposes. The IANA Time Zone Database catalogs about 400 time zones (many are aliases) using names like "America/New_York" rather than abbreviations like "EST" (which is ambiguous — it could be US Eastern, Australian Eastern, or Egyptian Standard Time). Most zones are offset from UTC by whole hours; a few (India, Newfoundland, parts of Australia, Nepal, Chatham Islands) have half-hour or 45-minute offsets.

Daylight Saving Time

Daylight Saving Time (DST) is the practice of advancing clocks by 1 hour during summer months to extend evening daylight. About 70 countries observe DST, mostly in the Northern Hemisphere. The calculator handles DST automatically via the IANA database — when converting a summer datetime from US/Eastern (EDT, UTC-4) to UTC, it correctly adds 4 hours; in winter (EST, UTC-5), it adds 5 hours. The IANA database tracks historical and current DST rules for every zone.

Unix timestamp as universal pivot

The Unix timestamp (seconds since 1970-01-01 UTC) is the universal pivot for date-time interchange. It's timezone-independent (always UTC), compact (an integer), and universally supported. The calculator converts the source TZ wall-clock to a Unix timestamp (the "true" UTC instant), then formats that instant in the target TZ. Showing the Unix timestamp alongside the converted time is useful for debugging and for cross-checking conversions against other tools.

The same UTC instant (2026-12-03T08:08:00+00:00) formatted in 7 major time zones. Offsets include DST.
Time zoneLocal datetimeUTC offset
UTC2026-12-03T08:08:00+00:000.0 h
ET (US/Eastern)2026-12-03T03:08:00+05:005.0 h
PT (US/Pacific)2026-12-03T00:08:00+08:008.0 h
GMT/BST (UK)2026-12-03T08:08:00+00:000.0 h
CET (Western Europe)2026-12-03T09:08:00-01:00-1.0 h
JST (Japan)2026-12-03T17:08:00-09:00-9.0 h
AEST (Sydney)2026-12-03T19:08:00-11:00-11.0 h
Info

Time zone conversion is most reliable when the source datetime is first converted to a UTC instant (Unix timestamp), then formatted in the target TZ. The UTC instant is timezone-independent and unambiguous — it represents a single moment in time. This is the strategy used by virtually all date-time libraries and APIs.

Pro tip

For meeting scheduling across time zones, use the comparison table to verify the chosen time works for all participants. Pay special attention around DST transition dates (March and November in the US; March and October in Europe) — the offset can change by 1 hour between adjacent days.

Authoritative References

  • Wikipedia — Time zone— wikipedia.org
    Overview of time zone conventions, including UTC offsets, DST, and the IANA naming system.
  • IANA Time Zone Database— iana.org
    The canonical source of time zone information used by virtually all operating systems, programming languages, and databases.
  • ISO 8601 — Date and time format (Wikipedia)— wikipedia.org
    International standard for representing dates and times, used by this calculator for ISO 8601 output format.

Try our other free calculators

CalcGenius has 1,200+ free, ad-free, browser-based calculators for finance, health, math, science, and everyday life. No sign-up required.

Datetime Converter — Calendar Duration & Schedule Plan