Getting the Date

From: Date: Wed, 28 Jun 2000 07:30:28 +0000
Subject: Getting the Date
Groups: php.general 
Request: Send a blank email to php-general+get-3505@lists.php.net to get a copy of this message
Hi; I'm using this line of code to try and fetch the current date: $time = getdate time(); It isn't working. What am I doing wrong? I'm also using the following code to parse out the needed data: $dateyr = $time("year"); /* as YYYY */ $datemo = $time("mon"); /* as MM (number) */ $dateda = $time("mday"); /* as DD (number) */ Is this correct? TIA, BenO

« previous php.general (#3505) next »