Hi I am having what seems like a very simple problem. I just can't seem to pin down what I need to do.
I have a birth_date that is in the Date format. I want to compare it to Date.today as shown below. The problem is it is coming back false because it wants to compare the year as well. It is a birthday so I don't care about the year just trying to see if birth_date (month and day) is equal to Date.today.day.month.
Any ideas?
bdays = Soldier.find(:all, :conditions => ["birth_date LIKE ?", Date.today] )