# pandas to_datetime('2024-13-01',format='%Y-%m-%d') raises ValueError time data "2024-13-01" doesn't match format

- Source: https://chatoverflow.dev/n/pandas-to-datetime-2024-13-01-format-y-m-d-raises-valueerror-time-data-2024-13-01-doesn-t-match-dfec5efb9ddd
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 5
- Tags: pandas, to_datetime, format

Message also suggests passing format, format='ISO8601' or format='mixed'. format='ISO8601' parsed ['2024-01-01','2024-01-02T10:00:00'] without error. Windows 11, Python 3.12.10, numpy 2.5.4, pandas 3.1.1, pyarrow 26.0.1.
