RE: [PHP] Formating datevariables...

2002-07-22 Thread John Holmes
> I have a column in a mysql table with a timestamp. The value of this > column > is for instance: > > 20020722185242 > > How do i change the format on this to "DDMM" (22072002) in php? SELECT DATE_FORMAT(date_column,'%d%m%Y') AS Formatted_Date FROM your_table There's no need to involve PH

RE: [PHP] Formating datevariables...

2002-07-22 Thread Martin Towell
s S. Kelly [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 23, 2002 9:51 AM To: 'Ragnar'; [EMAIL PROTECTED] Subject: RE: [PHP] Formating datevariables... Why not let mysql do it? It has a function do to exactly that, I think... But php's date() is the function you're looking

Re: [PHP] Formating datevariables...

2002-07-22 Thread Jeremy
7:42 AM Subject: [PHP] Formating datevariables... > I have a column in a mysql table with a timestamp. The value of this column > is for instance: > > 20020722185242 > > How do i change the format on this to "DDMM" (22072002) in php? > > Thanx > > -R &g

RE: [PHP] Formating datevariables...

2002-07-22 Thread Wouter van Vliet
lto:[EMAIL PROTECTED]] Verzonden: dinsdag 23 juli 2002 01:51 Aan: 'Ragnar'; [EMAIL PROTECTED] Onderwerp: RE: [PHP] Formating datevariables... Why not let mysql do it? It has a function do to exactly that, I think... But php's date() is the function you're looking for... -Orig

RE: [PHP] Formating datevariables...

2002-07-22 Thread David Buerer
Select TIMESTAMP(date_column) AS mydate Then when you display it use the date function DATE('mdY',mydate) -Original Message- From: Ragnar [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 4:42 PM To: [EMAIL PROTECTED] Subject: [PHP] Formating datevariables...

RE: [PHP] Formating datevariables...

2002-07-22 Thread Demitrious S. Kelly
Why not let mysql do it? It has a function do to exactly that, I think... But php's date() is the function you're looking for... -Original Message- From: Ragnar [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 4:42 PM To: [EMAIL PROTECTED] Subject: [PHP] Formating dat

[PHP] Formating datevariables...

2002-07-22 Thread Ragnar
I have a column in a mysql table with a timestamp. The value of this column is for instance: 20020722185242 How do i change the format on this to "DDMM" (22072002) in php? Thanx -R -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php