pydate_as_date
No overview available.
def pydate_as_date(
value: Union[date, datetime]
) - > date
Converts a Python date or datetime object into a standard date object. This is useful for normalizing date-like inputs into a consistent date format for comparison or storage.
Parameters
| Name | Type | Description |
|---|---|---|
| value | Union[date, datetime] | The Python date or datetime instance to be converted. |
Returns
| Type | Description |
|---|---|
date | A date object representing the calendar date of the input, with time information removed if a datetime was provided. |