At 13:11 +1100 11/22/02, Alan McDonald wrote:
this might give you some ideas
select
CONCAT(DAYOFMONTH(p.DATEGOLIVE),'.',MONTH(p.DATEGOLIVE),'.',YEAR(p.DATEGOLIV
E)) DATEGOLIVEF
from my table p
It's a little easier to use DATE_FORMAT(d,'%M, %d, %Y') instead.


 -----Original Message-----
 From: Alex Behrens [mailto:[EMAIL PROTECTED]]
 Sent: Friday, 22 November 2002 13:01
 To: MYSQL
 Subject: date conversion problem


 Hey All,

 I'm storing date values for hockey game information using the
 DATE value and
 they are stored as YYYYMMDD and when I retrieve them from the
 database they
 are shown as: "2002-11-23" I was wondering if there was a way to have them
 converted to November, 23, 2002 when they are displayed on my displayed on
 the page. Is this possible?

 mysql

 > Thanks!

---------------------------------------------------------------------
Before posting, please check:
  http://www.mysql.com/manual.php   (the manual)
  http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to