Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

current date

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

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:
-[Bl@de Runner]-
New php-forum User
New php-forum User
 
Posts: 9
Joined: Sun Jun 30, 2002 6:45 am

Re: current date

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

just rtfm

http://www.php.net/date

Greetz Daan
DoppyNL
 

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);
User avatar
WiZARD
Moderator
Moderator
 
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol

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
Jay
 

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:
User avatar
WiZARD
Moderator
Moderator
 
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol


Return to PHP coding => General

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.