On Nov 14, 2007, at 12:39 PM, [EMAIL PROTECTED] 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
[EMAIL PROTECTED]

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

Reply via email to