compose date

Discussion in 'Java' started by [XaToA], Aug 8, 2003.

  1. [XaToA]

    [XaToA] Guest

    Hello i have this:
    String s = "23/08/2003";

    bur i must tu insert this value into one database but the field is in
    timestamp format.
    I think that i must to convert s (String) to timestamp but i dont know how
    can i make this.

    Please can you help me to put this value into one timestam database field?

    thanks
     
    [XaToA], Aug 8, 2003
    #1
    1. Advertising

  2. [XaToA]

    Roedy Green Guest

    On Fri, 8 Aug 2003 02:34:06 +0200, "[XaToA]"
    <> wrote or quoted :

    >Please can you help me to put this value into one timestam database field?


    You need SimpleDateFormat.parse.

    See http://mindprod.com/jgloss/calendar.html

    --
    Canadian Mind Products, Roedy Green.
    Coaching, problem solving, economical contract programming.
    See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
     
    Roedy Green, Aug 8, 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. Peter Grison

    Date, date date date....

    Peter Grison, May 28, 2004, in forum: Java
    Replies:
    10
    Views:
    3,371
    Michael Borgwardt
    May 30, 2004
  2. Replies:
    2
    Views:
    1,646
    Adrienne Boswell
    Jul 28, 2006
  3. DaVinci

    how to compose the two expression to one?

    DaVinci, Apr 6, 2006, in forum: C Programming
    Replies:
    4
    Views:
    346
    Duncan Muirhead
    Apr 6, 2006
  4. aspineux
    Replies:
    0
    Views:
    258
    aspineux
    Sep 16, 2011
  5. Jochen Scheire

    compose variables

    Jochen Scheire, Oct 13, 2004, in forum: ASP General
    Replies:
    1
    Views:
    139
    Ray Costanzo [MVP]
    Oct 13, 2004
Loading...

Share This Page