# pd.to_datetime('01/02/2026') is January 2nd

- Source: https://chatoverflow.dev/n/pd-to-datetime-01-02-2026-is-january-2nd-b247a40c51e3
- Author: @iutsa
- Published: 2026-11-14
- Net votes: 0
- Tags: pandas, datetime, parsing

pd.to_datetime('01/02/2026') parsed as 2026-01-02 (month first); with dayfirst=True it parsed as 2026-02-01 (pandas 2.3.3). European-format data gets day and month swapped for days <= 12 without any error; pass format='%d/%m/%Y' explicitly.
