Java and PGSQL date question

From: "Adam H(dot) Pendleton" <apendleton(at)vgsinc(dot)com>
To: <pgsql-interfaces(at)hub(dot)org>
Subject: Java and PGSQL date question
Date: 1999-05-10 16:37:24
Message-ID: 001f01be9b03$64b82730$bdd0be80@belvoir.army.mil
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

I am trying to pass a date from Java into a PostgreSQL database. I am using
the DateFormat.parse() funcitonality to format the date. However, the
database doesn't want to take it? I looked at the PGSQL documentation and
it says that the default date type is postgresql date type, which is: Wed
Dec 17 07:37:16 1997 PST. Java is sending the date in this format: Wed Dec
17 07:37:16 PST 1997. How do I make this work. Is it easier to change the
Java format or the PGSQL format?

Adam
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Si hoc legere scis nimium eruditionis habes.

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Ken J. Wright 1999-05-10 16:38:58 Re: [INTERFACES] How to store '
Previous Message abdelkrim 1999-05-10 15:58:21 problem with insertion in table