• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with Date and Drop down box

 
visu Nekk
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 381
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at java.text.SimpleDateFormat
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36007
422
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Visu,
You can also use Calendar.get(Calendar.YEAR) and the like.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!