Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Use time.strptime & time.strftime solution in Clear category for Convert Date by U.V
from time import strptime,strftime
def convert_date(date: str) -> str:
try:
t=strftime('%Y-%m-%d',strptime(date,'%d/%m/%Y'))
except:
t="Error: Invalid date."
return t
Nov. 16, 2023