Re: function CreateDate i made doesnt work?

From: Date: Tue, 06 Apr 2004 13:30:37 +0000
Subject: Re: function CreateDate i made doesnt work?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-182464@lists.php.net to get a copy of this message
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 (#182464) next »