note 96331 deleted from function.date-format by danbrown

From: Date: Sat, 20 Feb 2010 21:34:16 +0000
Subject: note 96331 deleted from function.date-format by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-166219@lists.php.net to get a copy of this message
Note Submitter: mrhankey ---- hi i am trying to format a date to display from a mysql database. the client inputs there date of birth via a datepicker and it inserts into mysql database yyyyy-mm-dd but trying to get that to display on my clients details page is not working. at the moment it returns: Date of Birth: 1981-01-29 i want to change the display of this but cant get it to work. i tried using this: <?php $row_WADAclients['DateOfBirth'] = gmdate("d.m.y"); ?> but to no joy at all. just returns in the field todays date. can anyone help me with a line of code that will format the dateofbirth to dd-mm-yyyy many thanks

« previous php.notes (#166219) next »