On Tuesday, 29 May 2012 17:58:25 UTC+2, rockbust wrote: > > Anyone have a solution to this? Thanks
Why don't you store the user's birthday (MM/DD) and search on that instead of or in addition to their birthdate. You could also just use mysql's date functions ala (all users born in february): select * from users where MONTH(birthdate) = 2; To use sql functions in queries - either type the whole thing as a string, or use a dbo expression object (try first, ask second - with code). AD -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php