ok... I wanted to know what the numbers 6, [2,0,1] actually are. It helps me to customize the algorithm you provided if the date field is in other column. ~Manjunath