Midhun Midhun - 1 month ago 12
PHP Question

I want to reverse my string as dd/mm/yyy to yyyy/mm/dd

I need to reverse my date from 10/21/2016 to 2016/10/21
how can I possible to do this?

Answer
echo date('Y/m/d', strtotime('10/21/2016'));

this will helps you