Hi,

    I've written a servlet which call an entity bean create with a parameter
in java.sql.Date type.  The record successfully created in the Oracle8i
database, but the time portion of it lost.  How can I preserve the time
portion??

    My code to handle the Date variable in servlet :-
      java.util.Date today = new java.util.Date();
      sqlToday = new java.sql.Date(today.getTime());

Albert

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to