It's not a secret anymore!*
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 Murach's Java Servlets and JSP this week in the Servlets 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: 37879
    
  22
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
 
Similar Threads
Frame SIze
How to add new tabs from JMenu
ActonListener
How to insert date values to database using java swings
JSpinner DateModel : Set a date