Re: function CreateDate i made doesnt work?

From: Date: Tue, 06 Apr 2004 13:32:09 +0000
Subject: Re: function CreateDate i made doesnt work?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-182467@lists.php.net to get a copy of this message
by the way change ur if alittle.. change the && to || "John W. Holmes" <holmes072000@charter.net> wrote in message news:013301c41bdb$5a53b6c0$a629089b@GORDWKTB1HXA002... > From: "Andy B" <aborka1@wmis.net> > > > i have the function i made: > > function CreateDate($day, $month, $year) { > > if(!empty($day) && !empty($month) && !empty($year)){ > > //convert $day, $month, and $year into a valid timestamp > > > $time= strtotime($day, mktime(0,0,0,$month,1,$year)); > > $time=date("YmdHis", $time); > > Replace the above two lines with > > $time = date('YmdHis', mktime(0,0,0,$month,$day,$year); > > ---John Holmes...

« previous php.general (#182467) next »