From: | "Adam Lang" <aalang(at)rutgersinsurance(dot)com> |
---|---|
To: | "[PHP] PostgreSQL" <pgsql-php(at)postgresql(dot)org> |
Subject: | Re: Date functions |
Date: | 2001-05-17 13:35:30 |
Message-ID: | 009801c0ded6$3d9c6080$330a0a0a@rutgersinsurance.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-php |
Use get date. It returns an array of all that info for you.
http://php.net/manual/en/function.getdate.php
Adam Lang
Systems Engineer
Rutgers Casualty Insurance Company
http://www.rutgersinsurance.com
----- Original Message -----
From: "Carlos Felipe Zirbes" <carlosz(at)dbserver(dot)com(dot)br>
To: "[PHP] PostgreSQL" <pgsql-php(at)postgresql(dot)org>
Sent: Thursday, May 17, 2001 8:51 AM
Subject: [PHP] Date functions
>
> Hi.
>
> What's the best way to get current year, current month and current day?
> I need something like:
> $year = year();
> $month= month();
> $day=day();
>
> TIA,
>
> Carlos Felipe Zirbes
> DBServer Assessoria em Sistemas de Informação
> E-mail: carlosz(at)dbserver(dot)com(dot)br
> Fone: (51) 342-8055
> Fax: (51) 342-4838
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org
From | Date | Subject | |
---|---|---|---|
Next Message | Alexandr Listopad | 2001-05-17 13:41:00 | Re: Date functions |
Previous Message | Carlos Felipe Zirbes | 2001-05-17 12:51:44 | Date functions |