5

When I do the below code:

date("d/m/y", $date)

It gives me

04/06/15

How can I make it such a way that it will return

4/6/15

What modifications must I do in order to get the desired output? Please advise thanks.

NewbieCoder
  • 676
  • 1
  • 9
  • 32

2 Answers2

20
date("j/n/y", $date);

Try this one

Alghi Fari
  • 440
  • 3
  • 12
0
date("j/n/Y", $date)

That helped what I wanted.

NewbieCoder
  • 676
  • 1
  • 9
  • 32