Midhun Midhun - 1 year ago 88
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 Source
echo date('Y/m/d', strtotime('10/21/2016'));

this will helps you

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download