Re: timezone

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: angelo(dot)rigo(at)globo(dot)com
Cc: pgsql-php(at)postgresql(dot)org
Subject: Re: timezone
Date: 2002-08-01 18:44:52
Message-ID: 200208011144.52789.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

Angelo,

> So simple!
> thank?s Josh
>
> in my case i do :
> -- SELECT nome, data FROM aprovados order by nome asc --
> -- printf ("<tr bgcolor='$bgcolor'><td>%s</td><td>%s</td></tr>
> ",$myrow[nome], $myrow[data]); --
>
> the select goes like this?
>
> -- SELECT nome, data to char (??some_date??, 'DD.MM.YYYY');FROM aprovados
> order by nome asc --

that would be:

SELECT nome, to_char(data, 'DD.MM.YYYY') AS data
FROM aprovados
ORDER BY nome ASC;

--
-Josh Berkus

______AGLIO DATABASE SOLUTIONS___________________________
Josh Berkus
Complete information technology josh(at)agliodbs(dot)com
and data management solutions (415) 565-7293
for law firms, small businesses fax 621-2533
and non-profit organizations. San Francisco

Browse pgsql-php by date

  From Date Subject
Next Message Josh Berkus 2002-08-01 19:09:19 Re: timezone
Previous Message Josh Berkus 2002-08-01 18:14:48 Re: timezone