current date

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

-[Bl@de Runner]-
New php-forum User
New php-forum User
Posts: 9
Joined: Sun Jun 30, 2002 6:45 am

current date

Postby -[Bl@de Runner]- » Tue Aug 06, 2002 9:50 am

hi guys,

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

problaby not :oops:

DoppyNL

Re: current date

Postby DoppyNL » Tue Aug 06, 2002 9:52 am

just rtfm

http://www.php.net/date

Greetz Daan

User avatar
WiZARD
Moderator
Moderator
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol
Contact:

Re: current date

Postby WiZARD » Wed Aug 07, 2002 1:37 am

-[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);

Jay

Re: current date

Postby Jay » Wed Aug 07, 2002 10:57 am

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

User avatar
WiZARD
Moderator
Moderator
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol
Contact:

Re: current date

Postby WiZARD » Thu Aug 08, 2002 12:57 am

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:


Return to “PHP coding => General”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

cron