Add support for date and duration functions returning number