I am new in PHP and Learning to convert datetime in different format I have date time like this
My Date Input is like
03/12/2020 23:18
Which I need like
2020-12-03 23:18:00
So I am trying like
$date = date('Y-m-d H:i:s', strtotime($appointment_date));
But its giving me date like
1970-01-01 00:00:00
Let me know if anyone here can help me for solve the issue. Thanks!