<?php
$a = strtotime('1980-01-01 00:00');
$b = strtotime('1990-01-01 00:00');
$c = rand($a,$b);
$d = date('Y-m-d H:m', $c);
echo $c . '<br>';
echo $d;
?>
$date = new DateTime("2010-07-05T06:00:00Z", new DateTimeZone("Europe/Amsterdam"));
php.net/manual/ru/refs.calendar.php