Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Latest ISO datetime by Denis_Donner
from datetime import date, datetime
def get_latest(dt1str: str, dt2str: str) -> str:
d1 = datetime.fromisoformat(dt1str)
d2 = datetime.fromisoformat(dt2str)
return dt1str if d1 > d2 else dt2str
April 23, 2023