-2

In that script I get as a result 11/01/2017 12:00:01 so the result I want to get is : 11/01/2017 00:00:01

$time1 = strtotime("1/".$value['date_operation']."00:00:01"); 
$newformat1 = date('d/m/Y h:i:s',$time1);
echo $newformat1."this is the day formated";
Afaf
  • 654
  • 1
  • 5
  • 17

1 Answers1

0
$newformat1 = date('d/m/Y H:i:s',$time1);

Note the upper case "H"

sg-
  • 2,196
  • 1
  • 15
  • 16