aspose file tools
The moose likes JDBC and the fly likes Conversion Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "Conversion" Watch "Conversion" New topic
Author

Conversion

Ramesh Pappala
Ranch Hand

Joined: Sep 14, 2005
Posts: 50
I got the date value from the html file to my servlet by using the below code,

hiredate=req.getParameter("hiredate");

how to convert this hiredate into "SQL DATE" type. (ORACLE)

Please give an example code.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56233
    
  13

SQL date conversion isn't a servlets-specific topic, so I'm moving this off to the JDBC forum.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 16483
    
    2

I will let you check the API documentation pages to find out what "something" should be for whatever date format you expect to be receiving.
Ramesh Pappala
Ranch Hand

Joined: Sep 14, 2005
Posts: 50
Thank You Paul Clapham, for giving reply to my question. And the answer you have given is working.
Once again thanks for giving reply.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Conversion
 
Similar Threads
Mapping Oracle DATE to java.sql.Date ?
Objects and Constructs.
Representing MilliSeconds in JDBC using Oracle
Access Autonumber
What replaces deprecated getDate() ???