change visit entities' datetime to date datatype