In PHP è semplice creare una data casuale.
La soluzione è la seguente:
function my_create_rand_date() {
$timestamp = mt_rand(1, time());
return strftime('%Y-%m-%d', $timestamp);
}
In PHP è semplice creare una data casuale.
La soluzione è la seguente:
function my_create_rand_date() {
$timestamp = mt_rand(1, time());
return strftime('%Y-%m-%d', $timestamp);
}