Fix Date attributes comparison when extracting dirty factors

The current comparison ends up comparing an ISO date string against a Date object.