I am trying to format a date from my database:
$input = $data['date'];
$output = date('d.m.Y', strtotime($input));
The result is:
$input: 2016-02-09 13:42:00
$output: 01.01.1970
I do not understand, I am expecting the $output
to be 09.02.2016