php date format yyyy mm dd from oracle insert code example Example: php date format dd/mm/yyyy date("d/m/Y", strtotime($str));