pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Raul Secan <raul@zerosoft.ro>
To: pgsql-php@postgresql.org
Subject: to_char replacement
Date: Mon, 24 Jan 2005 18:47:33 +0200
Message-ID: <001401c50234$66a0b410$0a10a8c0@zerosoft.ro> (raw)

Hello, since to_char() function will no longer be available from PostgreSQL 8.1 ... I might need to change that from my scripts.

For example I had something like that, which you can see returns the day in the format I need:

SELECT TO_CHAR(some_date, 'DD-MM-YYYY') FROM some_table;

Is there anyway to do that without TO_CHAR?

view thread (5+ messages)  latest in thread

Message-ID: <001401c50234$66a0b410$0a10a8c0@zerosoft.ro>
Permalink:  ../001401c50234$66a0b410$0a10a8c0@zerosoft.ro/
Also on:    postgresql.org/message-id/001401c50234$66a0b410$0a10a8c0@zerosoft.ro

 · 

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: raul@zerosoft.ro
  Subject: Re: to_char replacement
  In-Reply-To: <001401c50234$66a0b410$0a10a8c0@zerosoft.ro>
  References: <001401c50234$66a0b410$0a10a8c0@zerosoft.ro>

* 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