Re-Convert timestamp DATE back to original format (when editing) PHP MySQL
- by Jess
Ok so I have managed to get the format of the date presented in HTML (upon display) to how I want (dd/mm/yyy)...However, the user also can change the date via a form.
So this is how it's setup as present. Firstly, the conversion from YYYY-MM-DD to DD/MM/YYYY and then display in HTML:
$timestamp = strtotime($duedate);
echo date('d/m/Y',…