use hasbit() to test for invert flag of weekdays and monthdays