Skip to content
UniKit

Date & time converter

Convert dates and times between ISO 8601, Chinese format, date+time, Unix seconds or milliseconds, weekday and relative days, with a custom YYYY-MM-DD HH:mm:ss style template.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Dates and times (one per line)

Accepts YYYY-MM-DD, YYYY/MM/DD, YYYY.MM.DD, YYYYMMDD, YYYY-MM-DD HH:mm(:ss[.SSS]), HH:mm(:ss), Unix seconds (10 digits) or milliseconds (13 digits), ISO 8601 with a zone (Z, +08:00) and Chinese forms (2024年6月1日 12时34分56秒). Values without a zone are read as UTC; unrecognized lines are reported individually.

Converted result

One result per line; values with a zone also show their UTC form.

Enter a date or time to see the result

Characters: 0 · Output lines: 0 · Converted: 0 · Errors: 0

What this tool does

  • Normalize a pasted batch of mixed date formats into one shape: ISO 8601, Chinese format, date+time, or your own template.
  • Convert between date-times and Unix timestamps (seconds or milliseconds), with weekday and the gap to a baseline.
  • Validate a list of dates: lines that cannot be parsed are reported one by one without breaking the rest.

Example

Input

2024-06-01 12:34:56

Output

Date & time 2024-06-01 12:34:56 | ISO 2024-06-01T12:34:56 | Chinese 2024年6月1日 12:34:56 | Epoch 1717245296 s / 1717245296000 ms | Weekday Saturday | Relative line 1 +0 d 00:00:00

The default output mode lists every field. Values without a zone are read as UTC so results never depend on your machine timezone.

Frequently asked questions

Which timezone is assumed when none is given?

UTC. The converter never reads the system clock or timezone, so the same input gives the same output everywhere. For a specific zone use ISO 8601 with an offset such as 2024-06-01T12:34:56+08:00; the output then also shows the matching UTC instant.

What happens with a bare HH:mm:ss?

A time-only value has no date, so date fields are computed against 1970-01-01 and the result says so. Provide a full date when you need both.

How are plain numbers interpreted?

8 digits are read as YYYYMMDD (20240601), 10 digits as Unix seconds (1717245296) and 13 digits as Unix milliseconds (1717245296000). Other lengths are unsupported and reported as unrecognized lines.

Relative to what?

To the reference instant you enter, or to the first recognized line when the reference is left empty — the result names that baseline. The current time is never read, so output is reproducible.

Which template symbols are supported?

YYYY YY MM M DD D HH H hh h mm m ss s SSS ddd dd A a Z X x cover year, month, day, 24/12-hour, minute, second, millisecond, weekday, AM/PM, timezone offset and Unix seconds/milliseconds. Other characters pass through unchanged, substitution happens once, and Z is empty when the input has no zone.

How is this different from Time formatter?

This tool handles the full date+time conversion set: ISO, Chinese format, date+time, timestamps, weekday, relative values and templates. Time formatter (time-format) focuses on the time part only — 12/24-hour, trimming seconds or milliseconds, keeping the offset — and ignores any date in the input.

Keywords:ISO 8601date time convertertimestamp converterdate-time

Related tools