First get the current date from

java.util.Date

Date currentDate=new Date();

then convert it into long type.....

then pass that as a parameter to the java.sql.Date constructor

Gautam


>From: "Wilson. P" <[EMAIL PROTECTED]>
>Reply-To: "A mailing list for discussion about Sun Microsystem's Java
>        Servlet API Technology." <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: How do I set the current date thru JDBC.
>Date: Tue, 13 Jul 1999 09:30:01 +0530
>
>Hi all
>
>I have setTime() function. But, I don't know how to get the current date
>to set into the Oracle database.
>
>bye
>wilson
>
>--
>
>
><< wilsonp.vcf >>


______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to