pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Fuhr <mike@fuhr.org>
To: Penchalaiah P. <penchalaiahp@infics.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: above the date functionssssssss
Date: Tue, 11 Jul 2006 06:10:21 -0600
Message-ID: <20060711121021.GA19636@winnie.fuhr.org> (raw)
In-Reply-To: <A70AE049E81A6A40879D5DC0AC8C38C906A49F26@venus.infics.com>
References: <A70AE049E81A6A40879D5DC0AC8C38C906A49F26@venus.infics.com>

On Tue, Jul 11, 2006 at 05:04:06PM +0530, Penchalaiah P. wrote:
> i want to get month and year in the current date..
> see this is date 2005-02-12... here date is 12 , month is 02 and year is
> 2005..
> but i want format like 02-2005...

See "Data Type Formatting Functions" and "Date/Time Functions and
Operators" in the "Functions and Operators" chapter of the
documentation:

http://www.postgresql.org/docs/8.1/interactive/functions-formatting.html
http://www.postgresql.org/docs/8.1/interactive/functions-datetime.html

-- 
Michael Fuhr



view thread (4+ messages)

Message-ID: <20060711121021.GA19636@winnie.fuhr.org>
Permalink:  ../20060711121021.GA19636@winnie.fuhr.org/
Also on:    postgresql.org/message-id/20060711121021.GA19636@winnie.fuhr.org

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: mike@fuhr.org, penchalaiahp@infics.com
  Subject: Re: above the date functionssssssss
  In-Reply-To: <20060711121021.GA19636@winnie.fuhr.org>

* 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