add support for date type