Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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;
Source by thisinterestsme.com #
 
PREVIOUS NEXT
Tagged: #php #script #generate #random #date
ADD COMMENT
Topic
Name
2+1 =