Re: Date functions

From: Alexandr Listopad <laa(at)laa(dot)zp(dot)ua>
To: Carlos Felipe Zirbes <carlosz(at)dbserver(dot)com(dot)br>
Cc: "[PHP] PostgreSQL" <pgsql-php(at)postgresql(dot)org>
Subject: Re: Date functions
Date: 2001-05-17 13:41:00
Message-ID: 20010517164100.A20159@laa.zp.ua
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

On Thu, May 17, 2001 at 09:51:44AM -0300, Carlos Felipe Zirbes wrote:
>
> Hi.
>
> What's the best way to get current year, current month and current day?
> I need something like:
> $year = year();

$year = date("Y");

> $month= month();

$month = date("m"); or date("F");

> $day=day();

$day = date("d"); or ...

see function.date.html for date() function.

GoodLuck! :-)

--
Laa

In response to

Browse pgsql-php by date

  From Date Subject
Next Message Gurudutt 2001-05-21 14:09:06 Need Help!!
Previous Message Adam Lang 2001-05-17 13:35:30 Re: Date functions