Answers for "php random date convert to date"

PHP
0

php script to generate random date

//Generate a timestamp using mt_rand.
$timestamp = mt_rand(1, time());

//Format that timestamp into a readable date string.
$randomDate = date("d M Y", $timestamp);

//Print it out.
echo $randomDate;
Posted by: Guest on April-08-2021

Code answers related to "php random date convert to date"

Browse Popular Code Answers by Language