Migrate ATDateRangeCriterion.
Fixed some ATDateCriteria migration logic.

It is a tricky one.