On 12 March 2010 09:00, Newb Newb <[email protected]> wrote: > i have a time field in my table. it is of varchar data type. > i want compare the time between given times. > my stored time format is 09:25:01 am. > is there any way to compare my time field ?
You asked this two days ago... > i don t have any idea about mysql STR_TO_DATE function.. > will it be usefull for my above problem.. Probably - if your DB is MySQL. The function turns a string into a date and you have a string that you need turned into a date. > please help me up to try it out... Have you tried it? What happens? If you've got some way with it, and have a code example that doesn't quite work, then maybe we can work from there. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

