Probeer dit,
<% date = Date.today %>
<% @employees = Employee.where("status = ? AND FORMAT(date_of_birth,'dd/MM','en-US') = ?", "Active" , date.strftime('%d/%m')) %>
Meer informatie over Formaatfunctie
Probeer dit,
<% date = Date.today %>
<% @employees = Employee.where("status = ? AND FORMAT(date_of_birth,'dd/MM','en-US') = ?", "Active" , date.strftime('%d/%m')) %>
Meer informatie over Formaatfunctie