how to give date time in mm/dd/yyyy hh:mm format code example Example: php date format dd/mm/yyyy date("d/m/Y", strtotime($str));