Change Date Format mm/dd/yyyy to yyyy-mm-dd in PHP

One of the common situation I come across often, is to change the date format from mm/dd/yyyy to yyyy-dd-mm. It just take two lines of code to get the results.

You can use an alternative approach also.

Related Post

Leave a Reply

Your email address will not be published. Required fields are marked *