Re: Newbie question - current date - time
| From: | Daniel Brown | Date: | Wed, 14 Nov 2007 17:45:54 +0000 |
| Subject: | Re: Newbie question - current date - time | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-264502@lists.php.net to get a copy of this message | ||
On Nov 14, 2007 12:39 PM, cool7@hosting4days.com <cool7@hosting4days.com> 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
>
> --
> Thanks - RevDave
> Cool @ hosting4days . com
> [db-lists]
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
<?
$current_date = date("d/m/Y");
$current_time = date("H:i:s");
?>
http://www.php.net/date
--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107
If at first you don't succeed, stick to what you know best so that you
can make enough money to pay someone else to do it for you.