note 96331 added to function.date-format

From: Date: Sat, 20 Feb 2010 20:58:15 +0000
Subject: note 96331 added to function.date-format
Groups: php.notes 
Request: Send a blank email to php-notes+get-166218@lists.php.net to get a copy of this message
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 ---- Server IP: 69.147.83.197 Probable Submitter: 92.236.242.31 ---- Manual Page -- http://www.php.net/manual/en/function.date-format.php Edit -- https://master.php.net/note/edit/96331 Del: integrated -- https://master.php.net/note/delete/96331/integrated Del: useless -- https://master.php.net/note/delete/96331/useless Del: bad code -- https://master.php.net/note/delete/96331/bad+code Del: spam -- https://master.php.net/note/delete/96331/spam Del: non-english -- https://master.php.net/note/delete/96331/non-english Del: in docs -- https://master.php.net/note/delete/96331/in+docs Del: other reasons-- https://master.php.net/note/delete/96331 Reject -- https://master.php.net/note/reject/96331 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#166218) next »