This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Java in General and the fly likes Date object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Date object" Watch "Date object" New topic
Author

Date object

Rohit Saxena
Greenhorn

Joined: Apr 06, 2007
Posts: 1
How do represent
Sat Jan 01 00:00:00 CST 1
as a Date?
Sridhar Santhanakrishnan
Ranch Hand

Joined: Mar 20, 2007
Posts: 317
Do you want it to be parsed into a Date object? If so, just find what the format is and use SimpleDateFormat.parse()
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39478
    
  28
And welcome to the Ranch
 
jQuery in Action, 2nd edition
 
subject: Date object