I have date format something like this. I don't know how to format this and this value needs to used on a close date in Opportunities. Please help me to format this. I tried below but throwing errors like invalid date format.
String data = '20/12/2020 00:00:00'; System.debug('dt'+date.parse(data));