Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Darcy Jones   on May 21 In Java Category.

  
Question Answered By: Adalia Fischer   on May 21

You can use the date  object for times as well. You just have to format the
output of the Date object so that it prints what you want in the drop  down.
Take a look at java.text.SimpleDateFormat for how to do your formatting. If the
Date object gives you problems, set the date to today's date or something and
then set whatever time  you want. The date will be ignored anyways.

Share: 

 
 
Didn't find what you were looking for? Find more on Time datatype in Java? Or get search suggestion and latest updates.


Tagged: