pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adam Lang <aalang@rutgersinsurance.com>
To: [PHP] PostgreSQL <pgsql-php@postgresql.org>
Subject: Re: Date functions
Date: Thu, 17 May 2001 09:35:30 -0400
Message-ID: <009801c0ded6$3d9c6080$330a0a0a@rutgersinsurance.com> (raw)
References: <01318BB7E12DD511B59F000103BC3D4B03E01E@TERRA>

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@dbserver.com.br>
To: "[PHP] PostgreSQL" <pgsql-php@postgresql.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@dbserver.com.br
> Fone: (51) 342-8055
> Fax: (51) 342-4838
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org




view thread (3+ messages)  latest in thread

Message-ID: <009801c0ded6$3d9c6080$330a0a0a@rutgersinsurance.com>
Permalink:  ../009801c0ded6$3d9c6080$330a0a0a@rutgersinsurance.com/
Also on:    postgresql.org/message-id/009801c0ded6$3d9c6080$330a0a0a@rutgersinsurance.com

 · 

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: aalang@rutgersinsurance.com
  Subject: Re: Date functions
  In-Reply-To: <009801c0ded6$3d9c6080$330a0a0a@rutgersinsurance.com>
  References: <01318BB7E12DD511B59F000103BC3D4B03E01E@TERRA> <009801c0ded6$3d9c6080$330a0a0a@rutgersinsurance.com>

* 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