Re: date format help request
- From: RBenson <ryan.benson@xxxxxxxxx>
- Date: Sun, 25 May 2008 22:02:45 -0700 (PDT)
http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html#function_date-format
$result = mysql_query("SELECT field1, field2,
DATE_FORMAT('DueDate','%c.%e.%Y') FROM myTable Order by DueDate",$db);
On May 24, 11:40 pm, Moose <1...@xxxxxxxxxxx> wrote:
I have a .PhP web page that gets its results from a query like
$result = mysql_query("SELECT * FROM myTable Order by DueDate",$db);
The result includes a field with a date, which gets returned as
"2008-05-25".
What would be required to have the query return a date with the format
like "05.25.2008".
I have to figure this has to have a simple solution, but I don't know
whether to start with the MySQL database settings or by using PhP.
Thanks,
.
- Prev by Date: File Upload Problem
- Next by Date: Re: date format help request
- Previous by thread: File Upload Problem
- Next by thread: Re: date format help request
- Index(es):
Relevant Pages
|