timestamp
$now = time();
echo "<select name = 'addData' type = 'hidden'>
<optgroup>";
for($i = -3; $i <= 3; ++$i)
echo "<option value='",date("d.m.Y", $now + $i * 24 * 60 * 60),"'>",date("d.m.Y", $now + $i * 24 * 60 * 60),"</option>"
echo "</optgroup></td>";