handle date type in repository