I was trying to illustrate formatting dates for the intended audience whther it be mySQL which must have a 0000-00-00 format or a user who may want a dd-MMM-yy format.
The 'datefromdb' function parameter I used in my example should be replaced with whatever variable contains the date data as it was retreived from mySQL after a select statement.
The 'DateUserSees' should be replaced with whatever variable contains the date data as it came from the client. maybe from a form.