PHP date stamp

i was originally looking for the answer to this question in a different forum, but realized it’s a PHP question…

can someone help me add a date stamp to this script??
it’s for a guestbook

<?php
$file = fopen(“guestbook.xml”, “w+”) or die(“Can’t open XML file”);
$xmlString = $HTTP_RAW_POST_DATA;
if(!fwrite($file, $xmlString)){
print “Error writing to XML-file”;
}
print $xmlString."
";
fclose($file);
?>

thanks,
s.