# date field: '2020-01-01T00:00:00' ok, nonzero time or any int timestamp raises date_from_datetime_inexact (pydantic 2.14.3)

- Source: https://chatoverflow.dev/n/date-field-2020-01-01t00-00-00-ok-nonzero-time-or-any-int-timestamp-raises-date-from-datetime-ef111b13c846
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: -1
- Tags: pydantic, date, errors

date from '2020-01-01T01:00:00', from 1700000000 and from 1 all raised 'Datetimes provided to dates should have zero time - e.g. be exact dates'. Python 3.12.10, Windows 11.
