pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
to get DD-MM-YYYY format of data
4+ messages / 4 participants
[nested] [flat]

* to get DD-MM-YYYY format of data
@ 2006-08-22 13:16  Penchalaiah P. <penchalaiahp@infics.com>
  0 siblings, 3 replies; 4+ messages in thread

From: Penchalaiah P. @ 2006-08-22 13:16 UTC (permalink / raw)
  To: pgsql-sql


Hi ..



I am using date is data type to one of the field in my table....but when
ever I am passing values to that field it is taking yyy-mm-dd format..

But I don't want like that .. I need like this DD-MM-YYYY.. for this wt
I have to do...



Thanks  &  Regards

Penchal reddy | Software Engineer          

Infinite Computer Solutions | Exciting Times...Infinite Possibilities...


SEI-CMMI level 5 | ISO 9001:2000

IT SERVICES | BPO


Telecom | Finance | Healthcare | Manufacturing | Energy & Utilities |
Retail & Distribution | Government


Tel +91-80-5193-0000(Ext:503)| Fax  +91-80-51930009 | Cell No
+91-9980012376|www.infics.com         

Information transmitted by this e-mail is proprietary to Infinite
Computer Solutions and/ or its Customers and is intended for use only by
the individual or entity to which it is addressed, and may contain
information that is privileged, confidential or exempt from disclosure
under applicable law. If you are not the intended recipient or it
appears that this mail has been forwarded to you without proper
authority, you are notified that any use or dissemination of this
information in any manner is strictly prohibited. In such cases, please
notify us immediately at info.in@infics.com and delete this mail from
your records.





Information transmitted by this e-mail is proprietary to Infinite Computer Solutions and / or its Customers and is intended for use only by the individual or the entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient or it appears that this mail has been forwarded to you without proper authority, you are notified that any use or dissemination of this information in any manner is strictly prohibited. In such cases, please notify us immediately at info.in@infics.com and delete this email from your records.

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: to get DD-MM-YYYY format of data
@ 2006-08-22 13:27  Alvaro Herrera <alvherre@commandprompt.com>
  parent: Penchalaiah P. <penchalaiahp@infics.com>
  2 siblings, 0 replies; 4+ messages in thread

From: Alvaro Herrera @ 2006-08-22 13:27 UTC (permalink / raw)
  To: Penchalaiah P. <penchalaiahp@infics.com>; +Cc: pgsql-sql

Penchalaiah P. wrote:

> I am using date is data type to one of the field in my table....but when
> ever I am passing values to that field it is taking yyy-mm-dd format..
> 
> But I don't want like that .. I need like this DD-MM-YYYY.. for this wt
> I have to do...

Read the documentation on the "DateStyle" parameter, noticing that it
controls two things at once, input and output of dates.

You may also use to_char() or extract() to format the date manually
without messing with the configuration.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: to get DD-MM-YYYY format of data
@ 2006-08-22 13:27  Michael Fuhr <mike@fuhr.org>
  parent: Penchalaiah P. <penchalaiahp@infics.com>
  2 siblings, 0 replies; 4+ messages in thread

From: Michael Fuhr @ 2006-08-22 13:27 UTC (permalink / raw)
  To: Penchalaiah P. <penchalaiahp@infics.com>; +Cc: pgsql-sql

On Tue, Aug 22, 2006 at 06:46:11PM +0530, Penchalaiah P. wrote:
> I am using date is data type to one of the field in my table....but when
> ever I am passing values to that field it is taking yyy-mm-dd format..
> 
> But I don't want like that .. I need like this DD-MM-YYYY.. for this wt
> I have to do...

See "Date/Time Input," "Date/Time Output," and "Data Type Formatting
Functions" in the documentation:

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

-- 
Michael Fuhr



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: to get DD-MM-YYYY format of data
@ 2006-08-29 18:15  codeWarrior <gpatnude@hotmail.com>
  parent: Penchalaiah P. <penchalaiahp@infics.com>
  2 siblings, 0 replies; 4+ messages in thread

From: codeWarrior @ 2006-08-29 18:15 UTC (permalink / raw)
  To: pgsql-sql

17.10.2. Locale and Formatting
  DateStyle (string) 

  Sets the display format for date and time values, as well as the rules for interpreting ambiguous date input values. For historical reasons, this variable contains two independent components: the output format specification (ISO, Postgres, SQL, or German) and the input/output specification for year/month/day ordering (DMY, MDY, or YMD). These can be set separately or together. The keywords Euro and European are synonyms for DMY; the keywords US, NonEuro, and NonEuropean are synonyms for MDY. See Section 8.5, "Date/Time Types" for more information. The default is ISO, MDY. 



  ""Penchalaiah P."" <penchalaiahp@infics.com> wrote in message news:A70AE049E81A6A40879D5DC0AC8C38C906F3F4B0@venus.infics.com...
  Hi .. 

   

  I am using date is data type to one of the field in my table..but when ever I am passing values to that field it is taking yyy-mm-dd format..

  But I don't want like that .. I need like this DD-MM-YYYY.. for this wt I have to do.

   

  Thanks  &  Regards

  Penchal reddy | Software Engineer           

  Infinite Computer Solutions | Exciting Times.Infinite Possibilities... 

  SEI-CMMI level 5 | ISO 9001:2000

  IT SERVICES | BPO                                                                                                                                                                           

  Telecom | Finance | Healthcare | Manufacturing | Energy & Utilities | Retail & Distribution | Government                                                        

  Tel +91-80-5193-0000(Ext:503)| Fax  +91-80-51930009 | Cell No  +91-9980012376|www.infics.com          

  Information transmitted by this e-mail is proprietary to Infinite Computer Solutions and/ or its Customers and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient or it appears that this mail has been forwarded to you without proper authority, you are notified that any use or dissemination of this information in any manner is strictly prohibited. In such cases, please notify us immediately at info.in@infics.com and delete this mail from your records.

   

        Information transmitted by this e-mail is proprietary to Infinite Computer Solutions and / or its Customers and is intended for use only by the individual or the entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient or it appears that this mail has been forwarded to you without proper authority, you are notified that any use or dissemination of this information in any manner is strictly prohibited. In such cases, please notify us immediately at info.in@infics.com and delete this email from your records.
       

^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2006-08-29 18:15 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-08-22 13:16 to get DD-MM-YYYY format of data Penchalaiah P. <penchalaiahp@infics.com>
2006-08-22 13:27 ` Alvaro Herrera <alvherre@commandprompt.com>
2006-08-22 13:27 ` Michael Fuhr <mike@fuhr.org>
2006-08-29 18:15 ` codeWarrior <gpatnude@hotmail.com>

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