File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Java in General
Bookmark "Date object" Watch "Date object" New topic

Date object

Rohit Saxena

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

Joined: Oct 13, 2005
Posts: 46402
And welcome to the Ranch
I agree. Here's the link:
subject: Date object
It's not a secret anymore!