Skip site navigation (1) Skip section navigation (2)

Re: [GENERAL] extracting date information?

From: wr(at)tribe(dot)ping(dot)de
To: pgsql-general(at)postgreSQL(dot)org
Subject: Re: [GENERAL] extracting date information?
Date: 1998-05-19 20:34:31
Message-ID: 19980519223431.25371@tribe.ping.de (view raw or flat)
Thread:
Lists: pgsql-general
On Tue, May 19, 1998 at 01:27:02PM -0500, Jackson, DeJuan wrote:
> > Now that my dates are being retreived in this format:
> > Sat Dec 12 00:00:00 1998 CET
> > 
> > Is there a way to format this to leave off the "time" portion and
> > maybe
> > the "timezone" info ?
> > 
> Since you're using php why don't you try (with you date datatype):
> $date = '1998-05-05';
> list($year, $mon, $day) = explode('-', $date);
> echo $date('l M d, Y', mktime(0,0,0,$mon, $day, $year));

I have a similar problem which could be solved if i knew a possibility to
convert datetime values to date values. There is only a function provided
for the opposite direction.

Werner
-- 
Werner Reisberger         public-key available:          voice: +49 234 540294
Schoellmannstr. 20    pgp-public-keys(at)keys(dot)pgp(dot)net         Fax: +49 234 540239
D-44807 Bochum      with "get 0xED527449" in the subject    

In response to

pgsql-general by date

Next:From: Brian SchaffnerDate: 1998-05-19 20:55:20
Subject: Re: [PHP3] RE: [GENERAL] User Authentication Failed
Previous:From: Jackson, DeJuanDate: 1998-05-19 19:37:26
Subject: RE: [GENERAL] User Authentication Failed

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group