List:General Discussion« Previous MessageNext Message »
From:Paul DuBois Date:November 22 2002 9:16pm
Subject:RE: date conversion problem
View as plain text  
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:bigal@stripped]
>>  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!

Thread
date conversion problemAlex Behrens22 Nov
  • RE: date conversion problemAlan McDonald22 Nov
    • How to Retreive Web Links from MySQL to HTML ???tmb22 Nov
      • Re: How to Retreive Web Links from MySQL to HTML ???Peter L. Berghold22 Nov
      • Re: How to Retreive Web Links from MySQL to HTML ???Paul DuBois22 Nov
      • Re: How to Retreive Web Links from MySQL to HTML ???Michael T. Babcock22 Nov
    • RE: date conversion problemPaul DuBois22 Nov
    • Re: How to Retreive Web Links from MySQL to HTML ???Octavian Rasnita23 Nov
      • Re: How to Retreive Web Links from MySQL to HTML ???Michael T. Babcock25 Nov