date/timestamp support for to_number function