It is currently Tue Feb 07, 2012 8:09 am

All times are UTC + 2 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: convert string to date in mysql4.0.24
PostPosted: Thu Feb 07, 2008 8:12 am 
Offline

Joined: Fri Jan 04, 2008 6:59 am
Posts: 13
Hi,

I use mysql4.0.24. Date is stored as string('15/01/2008') in mysql table.Now i want to filter the records based on the date column using <,> and between operatoes.But i am unable to do it.How can i convert the date column from string data type to date data type and check it.

I use cast() function.But it is not properly worked in mysql4.0.24.Please anyone tell me the query.

Thanks in advance.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 07, 2008 6:25 pm 
Offline

Joined: Sun May 02, 2004 11:34 pm
Posts: 6498
Location: toronto, canada
use the CAST syntax

_________________
Lostboy

Cat, the other other white meat

Please read Posting Etiquette before posting

You can always try Google


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 07, 2008 8:23 pm 
Offline

Joined: Tue Aug 31, 2004 2:26 pm
Posts: 24
Location: Oradea, Rou
Please post the query you used, perhaps it helps to see what you did wrong.

_________________
"I don't believe in endings, I only believe in new beginnings"


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 2 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron