Re: 2 dates, difference in days AARGH!!
| From: | Chris Wesley | Date: | Wed, 11 Dec 2002 19:44:23 +0000 |
| Subject: | Re: 2 dates, difference in days AARGH!! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-127882@lists.php.net to get a copy of this message | ||
On Wed, 11 Dec 2002, Curtis Gordon wrote:
> future date:
> <?$maturity_date = mktime (0,0,0,$mday_row[3],$mday_row[2],$mday_row[5]);?>
> current date:
> <?$today = getdate();?>
> <?$now_date = mktime
> (0,0,0,$today['month'],$today['wday'],$today['year']);?>
$today['month'] is text, ie. "December", and mktime() requires all
integer arguments. If you use $today['mon'] instead, it seems like
you'll get what you want.
g.luck,
~Chris