Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Question about getDateTime( )

Status
Not open for further replies.

kate8

Programmer
Feb 14, 2001
184
US
Hi,
I am wondering if getDateTime( ) can get hours and minutes? If it does, how? If it does not, what method can do it and return a string?
Thanks for any help!!!
 
The java.util.Date class holds the date/time down to milliseconds.

You can use the GregorianCalendar class to extract the hours or minutes or whatever you need from the date.

"When you have eliminated the impossible, whatever remains, however
improbable, must be the truth." ~ Arthur Conan Doyle
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top