To use date fields via Common SQL, compare values by formatting the date as a string, in a date format that the database can parse. For example:
(sql:select * :from [Table] :where [= [Date] "25-Dec-2005"])
It is not possible to lookup date values in the database using numeric values. because