how to run timertask once in a day only one week?
<pre><code>for(Date timerDate1=startDate; timerDate1&lt;=cal3.add(cal3.DATE,7);startDate=cal3.add(cal3.DATE,1)) 
{ 
long period=60*60*1000; 
Timer timer = new Timer(); 
timer.schedule(new MyTask(),timerDate,period);
 cal3.add(cal3.DATE,1); 
}
</code></pre>
