Date to ISO format
Converts a date to its ISO-8601 representation.
- Use
datetime.datetime.isoformat()to convert the givendatetime.datetimeobject to an ISO-8601 date.
Converts a date to its ISO-8601 representation.
datetime.datetime.isoformat() to convert the given datetime.datetime object to an ISO-8601 date.