Re: Newbie question - current date - time

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Nov 14, 2007, at 12:39 PM, cool7@xxxxxxxxxxxxxxxx wrote:

Hi Folks,

Newbie question :

- how do I get and display the current date?
- how do I get and display the current time?

I see the getdate function - but I'm not sure if this is the right function
or how to display it....

http://www.php.net/manual/en/function.getdate.php

Give this a shot:

$Date = date("y/m/d h:m:i");
echo $Date;

You can format it how ever you want. Lots of different options. Check out: HTTP://www.php.net/date for lots more info.





--

Jason Pruim
Raoset Inc.
Technology Manager
MQC Specialist
3251 132nd ave
Holland, MI, 49424
www.raoset.com
japruim@xxxxxxxxxx

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux