function randomDate() {
$begin = strtotime("now");
$end = strtotime("-1 Month");
$timestamp = rand($begin, $end);
return date("Y-m-d H:i:s", $timestamp);
}
echo randomDate();
function randomDate() {
$begin = strtotime("now");
$end = strtotime("-1 Month");
$timestamp = rand($begin, $end);
return date("Y-m-d H:i:s", $timestamp);
}
echo randomDate();