use loop if any date attributes