In mysql table date is stored in yyyy-mm-dd hh:mm:ss format
I want to show on php form in format of dd/mm/yyyy input field type date
I tried following code ... not working
$pddt = date_format( date_create($row['invdt']), 'd/m/Y' );
You have to use date() function with PHP strtotime() function.
$pddt = date("d/m/Y",strtotime($row['invdt']));