Convert Date

Convert Date

该函数接收格式为dd/mm/yyyy 的日期字符串,并将其转换为格式为yyyy-mm-dd 的日期字符串。如果输入的格式不正确,函数应返回错误信息"Error: Invalid date."

example

输入:字符串 (str).

输出: 字符串字符串 (str).

示例

assert convert_date("25/12/2021")...
You should be an authorized user in order to see the full description and start solving this mission.