Codice PHP:
 for($i strtotime('2008-02-02'); $i<=strtotime('2008-02-06'); $i strtotime("+1 day",$i)) 
     echo 
date('Y-m-d',$i).'
'