Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Swing / AWT / SWT and the fly likes [question]how to Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "[question]how to "extract" day,month,year,min,second from selected SpinnerDateModel" Watch "[question]how to "extract" day,month,year,min,second from selected SpinnerDateModel" New topic
Author

[question]how to "extract" day,month,year,min,second from selected SpinnerDateModel

L Willie
Ranch Hand

Joined: Aug 10, 2008
Posts: 51




i require extract day, month, year, minute,second to do some calculation
Sincerely

Willie
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 40041
    
  28
Presumably with its getDate method, pass that to a Calendar object with its setTime method, then use the get method from the Calendar.
 
 
subject: [question]how to "extract" day,month,year,min,second from selected SpinnerDateModel