[FX.php List] Date math... here's how

Bob Patin bob at patin.com
Tue Sep 4 12:02:28 MDT 2007


$my_time = strtotime ($_GET['s']); //converts date string to UNIX  
timestamp
$timestamp = $my_time + 86400; //calculates # of days passed  
($num_days) * # seconds in a day (86400)
$d2 = date("Y/m/d",$timestamp);

Bob Patin
Longterm Solutions
bob at longtermsolutions.com
615-333-6858
http://www.longtermsolutions.com
Member of FileMaker Business Alliance and FileMaker TechNet

   CONTACT US VIA INSTANT MESSAGING:
      AIM or iChat: longterm1954
      Yahoo: longterm_solutions
      MSN: tech at longtermsolutions.com
      ICQ: 159333060

--------------------------
Contact us for FileMaker hosting for all versions of FileMaker
PHP • CDML • Full email services • Free DNS hosting • Colocation •  
Consulting




More information about the FX.php_List mailing list