Received: from mail1.hub.org (webmail.hub.org [216.126.85.1]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f4HDhDA83514 for ; Thu, 17 May 2001 09:43:13 -0400 (EDT) (envelope-from laa@laa.zp.ua) Received: from mx1.zsea.zp.ua (ZSEA.zp.ua [212.8.40.5]) by mail1.hub.org (8.11.3/8.11.1) with ESMTP id f4HDh2883475 for ; Thu, 17 May 2001 09:43:03 -0400 (EDT) (envelope-from laa@laa.zp.ua) Received: (from laa@localhost) by mx1.zsea.zp.ua with id f4HDf0d20235; Thu, 17 May 2001 16:41:00 +0300 (EEST) (envelope-from laa@laa.zp.ua) Date: Thu, 17 May 2001 16:41:00 +0300 From: Alexandr Listopad To: Carlos Felipe Zirbes Cc: "[PHP] PostgreSQL" Subject: Re: Date functions Message-ID: <20010517164100.A20159@laa.zp.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <01318BB7E12DD511B59F000103BC3D4B03E01E@TERRA> X-Archive-Number: 200105/77 X-Sequence-Number: 386 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