Add date/timestamp to to_number function