RDS> how can i easily get the date of the last sunday. php or javascript code to RDS> do this would be appreciated.
<?php
$d=time();
while (date("w",$d)!="0") $d-=86400;
print "Last Sunday was ".date ("M/d/Y",$d);
?>
Gladky Anton
mailto:[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

