Yes, you can use the date function to print a beautiful version of the timestamp that you pass into your setcookie function. Below is an example of code that you can implement. You can change the date format using the manual on this page .
$expireat = time() + (60*60*24*30);
setcookie("bangUser", $unique, $expireat);
echo date("l jS \of F Y h:i:s A",$expireat)
source
share