如何将以下字符串日期转换为Python中的日期格式。
input:
date='15-MARCH-2015'
expected output:
2015-03-15
我尝试使用datetime.strftime
和datetime.strptime
,但它不接受这种格式。