You need to execute mysql method in dob column
Something like the following
SELECT FROM users WHERE DAYOFYEAR(dob)in (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14)
You can use functions like WEEK, which works for you Ref this for mysql function
In ruby
arr=[] (0..13).each{|i| arr << (Date.today+i.day).day } User.find(:all, :conditions => ["DAYOFYEAR(DOB) in (?)", arr])
Salil source share