Skip to main content

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

NameTypeDescription
valueUnion[date, datetime]The Python date or datetime instance to be converted.

Returns

TypeDescription
dateA date object representing the calendar date of the input, with time information removed if a datetime was provided.