Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
try datetime solution in Clear category for Convert Date by Olpag
from datetime import datetime
def convert_date(date: str) -> str:
try:
return datetime.strptime(date, "%d/%m/%Y").strftime("%Y-%m-%d")
except:
return "Error: Invalid date."
Nov. 12, 2023
Comments: