Received: from bush.rutgersinsurance.com (rutgersinsurance.com [38.138.71.194]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f4HDYTA80385 for ; Thu, 17 May 2001 09:34:29 -0400 (EDT) (envelope-from aalang@rutgersinsurance.com) Received: from 6014cwpza006 (adam.rutgersinsurance.com [10.10.10.51]) by bush.rutgersinsurance.com (8.9.3/8.9.3) with SMTP id JAA24432 for ; Thu, 17 May 2001 09:47:13 -0400 Message-ID: <009801c0ded6$3d9c6080$330a0a0a@rutgersinsurance.com> From: "Adam Lang" To: "[PHP] PostgreSQL" References: <01318BB7E12DD511B59F000103BC3D4B03E01E@TERRA> Subject: Re: Date functions Date: Thu, 17 May 2001 09:35:30 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Archive-Number: 200105/76 X-Sequence-Number: 385 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" To: "[PHP] PostgreSQL" 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