Skip to main content

convert_pydate

No overview available.

def convert_pydate(
date_obj: date | datetime
) - > string

Converts a Python date or datetime object into an ISO 8601 formatted string.

Parameters

NameTypeDescription
date_obj`datedatetime`

Returns

TypeDescription
stringThe date formatted as an 'YYYY-MM-DD' string, or 'YYYY-MM-DDTHH:MM:SS' if time data is present.