pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexandr Listopad <laa@laa.zp.ua>
To: Carlos Felipe Zirbes <carlosz@dbserver.com.br>
Cc: [PHP] PostgreSQL <pgsql-php@postgresql.org>
Subject: Re: Date functions
Date: Thu, 17 May 2001 16:41:00 +0300
Message-ID: <20010517164100.A20159@laa.zp.ua> (raw)
In-Reply-To: <01318BB7E12DD511B59F000103BC3D4B03E01E@TERRA>

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



view thread (3+ messages)

Message-ID: <20010517164100.A20159@laa.zp.ua>
Permalink:  ../20010517164100.A20159@laa.zp.ua/
Also on:    postgresql.org/message-id/20010517164100.A20159@laa.zp.ua

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: laa@laa.zp.ua, carlosz@dbserver.com.br
  Subject: Re: Date functions
  In-Reply-To: <20010517164100.A20159@laa.zp.ua>
  References: <01318BB7E12DD511B59F000103BC3D4B03E01E@TERRA> <20010517164100.A20159@laa.zp.ua>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox