Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Conversion

 
Ramesh Pappala
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65218
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
SQL date conversion isn't a servlets-specific topic, so I'm moving this off to the JDBC forum.
 
Paul Clapham
Sheriff
Posts: 21416
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank You Paul Clapham, for giving reply to my question. And the answer you have given is working.
Once again thanks for giving reply.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic