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

Problem with Date and Drop down box

visu Nekk
Ranch Hand

Joined: Sep 06, 2005
Posts: 122
Hai,


I have a problem when retrieving data from the database.When i send data to the database,i concatenate three fields of date and store it as a date format in database.Similary i do the same with the data in two drop down boxes.But when i retieve the data i get it as a single unit.Can anyone help me out with how to get it back into three text fields for data and 2 drop down lists when i retrieve the data.

Thanx in advance.
Maximilian Xavier Stocker
Ranch Hand

Joined: Sep 20, 2005
Posts: 381
Look at java.text.SimpleDateFormat
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 26201
    
  66

Visu,
You can also use Calendar.get(Calendar.YEAR) and the like.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Problem with Date and Drop down box
 
Similar Threads
onchange the row of radio buttons
How to retrieve data from database when ever select in drop down list?
How to add error message before sendRedirect
regading dynamic form change
form duplication