Re: date functions

From: Date: Thu, 26 Feb 2004 05:38:31 +0000
Subject: Re: date functions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-178908@lists.php.net to get a copy of this message
In article <BAY8-DAV51gI6bXmdMJ000003de@hotmail.com>, matthewoatham@hotmail.com says... > Hi, > > You might already be fed up with my posts but I'm a complete PHP newbie and find these > groups are the best way to learn! Anyway I have the database date in the format: yyyy-mm-dd hh:mm:ss > e.g. 2004-02-24 07:57:59 but when in some situations I only want to show the user the date in the > format dd-mm-yyyy what is the correct / best php function to use for this purpose ? > > Cheers. > > Matt If you are pulling the dates from mysql, you could use the DATE_FORMAT in mysql to present them in the required format. -- Quod subigo farinam A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet?

« previous php.general (#178908) next »