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: PastDateIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
FutureDatePastDatetimeFutureDatetimeAwareDatetimeNaiveDatetimedatetime.date