Page 1 of 1

current date

Posted: Tue Aug 06, 2002 9:50 am
by -[Bl@de Runner]-
hi guys,

To get the current date, is this not just the function date() ?

problaby not :oops:

Re: current date

Posted: Tue Aug 06, 2002 9:52 am
by DoppyNL
just rtfm

http://www.php.net/date

Greetz Daan

Re: current date

Posted: Wed Aug 07, 2002 1:37 am
by WiZARD
-[Bl@de Runner]- wrote:hi guys,

To get the current date, is this not just the function date() ?

problaby not :oops:

try this:

Code: Select all

$today = getdate();
echo ($today);

Re: current date

Posted: Wed Aug 07, 2002 10:57 am
by Jay
WiZARD wrote:try this:

Code: Select all

$today = getdate();
echo ($today);

That returns the date as an array, it can't be displayed directly.

Personally I find date() to be much more flexible and user friendly :D

Re: current date

Posted: Thu Aug 08, 2002 12:57 am
by WiZARD
Jay wrote:
WiZARD wrote:try this:

Code: Select all

$today = getdate();
echo ($today);

That returns the date as an array, it can't be displayed directly.

Personally I find date() to be much more flexible and user friendly :D

yes sure i'm not check, sorry :oops: