0

How will i remove the 0 in my output i tried this code.

    $dates="2017-09-08";

    $formated_date=date("d-m-Y", strtotime($dates));

    Output:08-09-2017

My Expected Output : 8-9-2017

1 Answers1

0
$dates="2017-09-08";
$formated_date=date("j-n-Y", strtotime($dates));

USE THIS

chris85
  • 23,846
  • 7
  • 34
  • 51
Exprator
  • 26,992
  • 6
  • 47
  • 59