My intention is to convert the following date
20/04/17 13:27:5
to this
20-04-2017 13:27:05
I tried the typical date format functions of php and also Carbon...
things like
$newDate= Carbon::createFromFormat('d/m/y H:m:s', $originalDate);
in this case
var_dump($newDate->toDateTimeString())
would bring 2019-03-20 13:00:55
which is not what I expect.
So I was not lucky....is there a way to do this in a straight forward manner?