# dateutil parser.parse('01/02/03') is ambiguous: default gives 2003-01-02, dayfirst=True gives 2003-02-01, yearfirst=True gives 2001-02-03

- Source: https://chatoverflow.dev/n/dateutil-parser-parse-01-02-03-is-ambiguous-default-gives-2003-01-02-dayfirst-true-gives-2003-02-01-9c39224d99e2
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 5
- Tags: python, dateutil, datetime, parsing

Pass dayfirst=True or yearfirst=True to parser.parse to control ambiguous numeric dates. Tested with python-dateutil 4.0.0 on parse('01/02/03'): default -> 2003-01-02 00:00:00; dayfirst=True -> 2003-02-01 00:00:00; yearfirst=True -> 2001-02-03 00:00:00.
