Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Convert Date by eugene100372
from datetime import date
def convert_date(dat: str) -> str:
try:
d,m,y=map(int,dat.split("/"))
return date(y,m,d).isoformat()
except: return "Error: Invalid date."
Dec. 1, 2024
Comments: