Convert D/M/Y Date To Y/M/D Date in PHP


This is function convert form 'DD/MM/YYYY' to 'YYYY/MM/DD'
function toYMDDate($mdyDate)
    {
        $mdyDate = explode("/",$mdyDate);
        krsort($mdyDate);
        return  implode("/",$mdyDate);
    }
Good luck!

Share this

Related Posts

Previous
Next Post »

1 comments:

comments
IT
September 25, 2016 at 10:03 PM delete

I have read your blog its very attractive and impressive. I like it your blog.

PHP Training in chennai | PHP Training Course

PHP Training in chennai | Online PHP Course

Reply
avatar