php - How to show numerical date in mm/dd/yy format -


I am currently the month, day and year of different users in three db fields titled month, day, year.

When I'm displaying it:

  $ month = $ line ['month']; $ Day = $ line ['day']; $ Years = $ line ['year'];   

Then to resume it:

  $ month / $ day / $ year   

The problem is that PHP is doing the math and dividing the numbers ... what I can do to do this and it can be done simply to display dates ..

Thanks

Try this:

  "{$ month} / {$ day} / {$ Year} "echo;    

Comments