can't get correct dates when looping through my datetime array

 
//here is a snippet

datetime     low_date[10],high_date[10]  ;

// here i how it is fillled 

low_date[w]= iTime(NULL,0,index1) ; //Time[index1];

// If i acces the table with a definite index(for example 1) i get the correct dates but 
if i tried to access the  datetime  array  within a loop , i will get 1970.01.01 00:00:00 everytime

 for(int j =0;j<= 9;j=j+1) 
   {
     Print( low date ",high_date[j]); 
     Print("  low date ",low_date[w]);  
     
   }

please help
Reason: