He's probably doing something like:
select * from table where function(datefield)=102938495
or something like that. I'm note sure an index on datefield would get used there.
Now, in a more robust SQL database, you could just
create index table_func_dx on table (function(datefield));
and then you'd have an index that gets used.