datetime converted to date type