date format

Discussion in 'Java' started by [XaToA], Jul 30, 2003.

  1. [XaToA]

    [XaToA] Guest

    hello
    i am begining to working againt one postgresql database with java.
    i must to put into the database some dates.
    i must to configure the date fields into the database. which will be the
    date format? timestamp?
    if in java i have the String d="03/03/2003" how can i to format, convert,
    this String to date timestamp?

    which will be the idoneous field format for storing the dates and for
    working with java?

    Thanks
     
    [XaToA], Jul 30, 2003
    #1
    1. Advertising

  2. [XaToA]

    Roedy Green Guest

    On Wed, 30 Jul 2003 10:54:13 +0200, "[XaToA]"
    <> wrote or quoted :

    >which will be the idoneous field format for storing the dates and for
    >working with java?


    JDBC has its own Date format that it converts to the native format of
    the SQL.

    see http://mindprod.com/jgloss/sql.html#ESCAPES for sample code.

    --
    Canadian Mind Products, Roedy Green.
    Coaching, problem solving, economical contract programming.
    See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
     
    Roedy Green, Jul 30, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Brian Candy
    Replies:
    2
    Views:
    1,205
    Janaka
    Feb 18, 2004
  2. DC
    Replies:
    5
    Views:
    3,035
    Brendan Reynolds
    Jul 1, 2005
  3. Peter Grison

    Date, date date date....

    Peter Grison, May 28, 2004, in forum: Java
    Replies:
    10
    Views:
    3,366
    Michael Borgwardt
    May 30, 2004
  4. Chu
    Replies:
    3
    Views:
    4,233
    Shawn
    Aug 15, 2006
  5. Josh Sharpe
    Replies:
    1
    Views:
    227
    Brian Candler
    Sep 21, 2010
Loading...

Share This Page