datetime -local dd/mm/yy code example
Example 1: php date format dd/mm/yyyy
date("d/m/Y", strtotime($str));
Example 2: javascript date format mm/dd/yyyy
var date_format = new Date();
document.write(innerHTML = date_format.getMonth()+'/'+ date_format.getDate()+'/'+date_format.getFullYear());