Displaying date as dd-mm-yyyy and inserting to MySQL DATETIME field?
I've been using this:
<?php echo date("Y-m-d H:i:s"); ?>
...to put the date into a hidden field on my insert and update forms. How, though, can I take an existing date from a DATETIME field, display it in dd-mm-yyyy H:i format, so the UK user and understand it and easily edit it, AND ensure that when the user then tries to UPDATE that field that it will save back in the database in the correct MySQL default date format?