How do i know the value double of a date

please

i need to know if in ruby on rails can i get the value double of a date
for example in the next sql sentence

select * from employes where cdbl(finish_date) < 35678