On Tue, 16 Mar 1999, Scott Wallace wrote:
> I am having trouble understanding how to capture a date in HTML
> and executing a query with it.
>
> I get the parameter and then run it through the date format parse
> method (roughly):
>
> java.util.date aDate = aDateFormat.parse(textToParse);
// the following line should do the job:
java.sql.Timestamp aTimestamp = new Timestamp(aDate.getTime());
......................
Not tested, just with an eye at Sun's apidoc...
Cezar
>
> This returns a java.util.date. What I need is a
> java.sql.timestamp. Does anyone know what the common
> way to get from one to the other is?
>
> Thanks in advance.
>
> Scott
>
> ___________________________________________________________________________
> 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
>
Cezar Totth email: [EMAIL PROTECTED]
Fax: (401) 220 33 95
Genesys Software Romania Phone: (401) 638 49 44
Stefan Furtuna 169, sect.6
cod 77171, Bucharest
Romania
___________________________________________________________________________
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