Date Formatter
TextFormat any date into DD/MM/YYYY, ISO 8601, US style, long form, Unix timestamp, and more. Instant, in-browser date conversion with locale support.
What is a Date?
A Date Formatter takes a date in any common format and instantly converts it into multiple output formats โ DD/MM/YYYY, ISO 8601, US format (MM/DD/YYYY), a written long form, Unix timestamp, and day of the week. Dates appear in a confusing variety of formats across databases, APIs, documents, and applications; a formatter removes the ambiguity by showing the same date in all standard representations simultaneously.
The input is flexible: you can paste an ISO date like 2026-06-18, a DD/MM/YYYY date like 18/06/2026, a US-style 06/18/2026, a Unix timestamp in seconds or milliseconds, or almost any standard date string. The formatter detects the format automatically.
Date format conversion matters in practice. Moving data between a MySQL database (which stores dates as YYYY-MM-DD) and an Excel spreadsheet (which displays dates as DD/MM/YYYY in Indian settings, or MM/DD/YYYY in US settings) requires knowing the exact format at each step. Similarly, API responses often return Unix timestamps that need to be shown as human-readable dates in a UI.
The Locale option controls the language and ordering of the long form output and the day name. The DD/MM/YYYY, ISO, US format, and Unix timestamp outputs are locale-independent.
How to use this Date calculator
- Enter a date in the Date / Timestamp field โ any common format is accepted (ISO, DD/MM/YYYY, Unix timestamp, etc.).
- Choose a Locale to control the language of the long form and day name outputs.
- All six output formats appear instantly below.
- Click the Copy icon next to any output to copy it to your clipboard.
- Use the ISO output for database storage, the DD/MM/YYYY for Indian documents, or the Unix timestamp for API calls.
Formula & Methodology
Parsing: The input string is tested against these patterns in order: 1. All-digit string of 9โ13 characters โ Unix timestamp (โค10 digits = seconds, 11โ13 digits = milliseconds) 2.D/M/YYYY,D-M-YYYY,D.M.YYYYโ DD/MM/YYYY (day-first, international) 3. Any other string โ passed tonew Date(string)(handles ISO 8601, US format, RFC 2822, and most other standard date strings) Output generation: - DD/MM/YYYY:${pad(day)}/${pad(month)}/${year}using local date parts (no timezone shift) - ISO 8601:${year}-${pad(month)}-${pad(day)}- US format:${pad(month)}/${pad(day)}/${year}- Long form:Intl.DateTimeFormat(locale, { year: 'numeric', month: 'long', day: 'numeric' })- Day of week:Intl.DateTimeFormat(locale, { weekday: 'long' })- Unix:Math.floor(Date.getTime() / 1000)