You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Sy...@swisscom.com on 2003/01/17 12:12:53 UTC

date format with OJB

Hello,

I'm using the datetime format for the date in my MS SQL database.

In the repository file I put the TIMESTAMP format as JDBC-type.

But which java format could I use in my class?
Timestamp?
Date?
DateFormat?
other?

Thank you
Sylvain

Re: date format with OJB

Posted by Armin Waibel <ar...@code-au-lait.de>.
Hi,

see docs shipped with OJB: JdbcTypes

DATE                  java.sql.Date
TIME                   java.sql.Time
TIMESTAMP      java.sql.Timestamp

regards,
Armin

----- Original Message -----
From: <Sy...@swisscom.com>
To: <oj...@jakarta.apache.org>
Sent: Friday, January 17, 2003 12:12 PM
Subject: date format with OJB


Hello,

I'm using the datetime format for the date in my MS SQL database.

In the repository file I put the TIMESTAMP format as JDBC-type.

But which java format could I use in my class?
Timestamp?
Date?
DateFormat?
other?

Thank you
Sylvain

--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>