I have to convert date format in to mm-dd-yyyy I don\'t know what is the current date format it is dynamic so if I have dynamic date format is already in
mm-dd-yyyy
Replacing - with / for m-d-Y will help.
echo date('m-d-Y',strtotime(str_replace('-', '/', $date)));