php date f y code example Example: php date fomat $date=date_create("2013-03-15"); echo date_format($date,"Y/m/d H:i:s");