Skip to content
masterclass Buddy

Pydantic · Type Alias

FutureDate

PastDate is a Pydantic type for dates that must be in the past. It parses supported date inputs and rejects dates that are not earlier than the current date.

Last updated

Syntax

class User(BaseModel):
    birth_date: PastDate

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • FutureDate
  • PastDatetime
  • FutureDatetime
  • AwareDatetime
  • NaiveDatetime
  • datetime.date

Source: Standard Library Types | Pydantic Docs. Checked 2026-11-03.