Prøv dette,
<% date = Date.today %>
<% @employees = Employee.where("status = ? AND FORMAT(date_of_birth,'dd/MM','en-US') = ?", "Active" , date.strftime('%d/%m')) %>
Få mere at vide om Formatfunktion
Prøv dette,
<% date = Date.today %>
<% @employees = Employee.where("status = ? AND FORMAT(date_of_birth,'dd/MM','en-US') = ?", "Active" , date.strftime('%d/%m')) %>
Få mere at vide om Formatfunktion