Home php Convert php date in the desired format?

Convert php date in the desired format?

Author

Date

Category

In the $ Date variable stores the date of the species for example 2014-06-25
How to translate this date in the view 06/25/2014 ?


Answer 1, Authority 100%

$ date = "2014-06-25";
Echo Date ("D.m.y", StrTotime ($ Date));

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions