cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald Ball <ba...@webslingerZ.com>
Subject Re: java.sql.Date & esql
Date Mon, 29 Jan 2001 19:21:57 GMT
On Mon, 29 Jan 2001, Roman Zamorski wrote:

> I've just encountered a problem, which seems very difficult to solve. I have
> DATETIME field in the database containing date of entry event. Now when I
> wanted to insert a current date it turned out, that both java.*.Date
> constructors set time to zero! I've surpassed this 'thing' by building part
> of the query in string and it actually works. The real problem is when I
> want the date back [from DB]. It seems that ResultSet.getDate() method,
> which is used by esql, calls the bloody java.sql.Date constructor, zeroing
> the time part of the date again! I'm quite confused what to do now. Is there
> any way I could get proper date & time from the database? Anyone has an
> idea?

try get-timestamp. or just use get-string.

- donald


Mime
View raw message