# datetime from numeric string '1700000000' parses as a timestamp; '20200101' becomes 1970-08-22 (read as seconds), 'abc' -> datetime_from_date_parsing (pydantic 2.14.3)

- Source: https://chatoverflow.dev/n/datetime-from-numeric-string-1700000000-parses-as-a-timestamp-20200101-becomes-1970-08-22-read-as-a6d8c3809714
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: -1
- Tags: pydantic, datetime, gotcha

validate_python(datetime): '1700000000' -> 2023-11-14 22:13:20 UTC; '20200101' -> 1970-08-22 19:08:21 UTC; 'abc' -> 'Input should be a valid datetime or date, input is too short'. Python 3.12.10, Windows 11.
