pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Carlos Felipe Zirbes <carlosz@dbserver.com.br>
To: [PHP] PostgreSQL <pgsql-php@postgresql.org>
Subject: Date functions
Date: Thu, 17 May 2001 09:51:44 -0300
Message-ID: <01318BB7E12DD511B59F000103BC3D4B03E01E@TERRA> (raw)


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@dbserver.com.br
Fone: (51) 342-8055
Fax: (51) 342-4838



view thread (3+ messages)  latest in thread

Message-ID: <01318BB7E12DD511B59F000103BC3D4B03E01E@TERRA>
Permalink:  ../01318BB7E12DD511B59F000103BC3D4B03E01E@TERRA/
Also on:    postgresql.org/message-id/01318BB7E12DD511B59F000103BC3D4B03E01E@TERRA

 · 

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: carlosz@dbserver.com.br
  Subject: Re: Date functions
  In-Reply-To: <01318BB7E12DD511B59F000103BC3D4B03E01E@TERRA>
  References: <01318BB7E12DD511B59F000103BC3D4B03E01E@TERRA>

* 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