MM/DD/YYYY to SQL datetime converter
US date (MM/DD/YYYY) → SQL datetime (YYYY-MM-DD HH:mm:ss)
SQL datetime · YYYY-MM-DD HH:mm:ss
No time of day in the value: read as the start of the day (00:00), UTC.
Why a time of day?
9 June 2024 names a day, not a moment: no time of day was given, so there is no single instant for it in UTC. Choose the time of day to assume, or keep the date as written.
Worked examples
| Instant | MM/DD/YYYY | SQL datetime |
|---|---|---|
| an ordinary day | 06/29/2026 | 2026-06-29 00:00:00 |
| a leap day | 02/29/2028 | 2028-02-29 00:00:00 |
| the Unix epoch | 01/01/1970 | 1970-01-01 00:00:00 |
A date has no time of day. These examples, like the tool, read it as the start of the day (00:00) in UTC; the tool offers noon or keeping the date as written.
What this conversion changes
- A date has no time of day: before writing a time or a timestamp, the tool asks which time to assume (the start of the day or noon, in UTC). Nothing is filled in silently.
MM/DD/YYYY — US date (MM/DD/YYYY)
- Pattern
- MM/DD/YYYY
- Example
- 06/09/2024
- Seen in
- US business documents, Excel (US locale), Exports from US SaaS tools
SQL datetime — SQL datetime (YYYY-MM-DD HH:mm:ss)
- Pattern
- YYYY-MM-DD HH:mm:ss
- Example
- 2022-06-29 13:45:31
- Seen in
- MySQL DATETIME, PostgreSQL timestamp, SQLite, CSV exports from databases
Related conversions
Thousands of values to convert?
CSV batch mode converts an entire column from MM/DD/YYYY to SQL datetime (or any of the 82 formats, with time-zone shifts), entirely in your browser, with no row limit set by us (your device's memory is the practical ceiling). $9.99/month, hides the ads, cancel anytime.