Re: Newbie Date question

From: Date: Sun, 14 Jul 2002 23:54:22 +0000
Subject: Re: Newbie Date question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-107647@lists.php.net to get a copy of this message
include("Calc.php"); #http://www.phpinsider.com/php/code/Date_Calc/ #Date_Calc - a class for manipulating and comparing #Calendar dates, as well as formulating arrays of dates # for traditional calendar display. $yesterday = Date_Calc::prevDay($day=date('d'),$month=date('m'),$year=date('Y'),$format="%m-%Y-%d"); Hope that helps. -J On Sun, 14 Jul 2002 23:01:07 +1200, Royw wrote: > If: > > $today = date("Y-m-d"); > > Then how to I get: > > $yesterday = ? > > Thanks! -- Jason Morehouse (jm [@] netconcepts [.] com) Netconcepts LTD - Auckland, New Zealand * Linux: Because rebooting is for adding hardware.

« previous php.general (#107647) next »