current date

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

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

Tue Aug 06, 2002 9:50 am

hi guys,

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

problaby not :oops:
-Bl@derunner-


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

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);
"Sex,Drugs and Rock&Roll " replaced at "Sucks,Bugs and Plug&Play";
Image

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: 1240
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol
Contact:

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:
"Sex,Drugs and Rock&Roll " replaced at "Sucks,Bugs and Plug&Play";
Image

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests