added support for date type (closes #26)