Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Advanced-java] Date


  • From: karenshiau@xxxxxxxxxx (Karen Shiau)
  • Subject: [Advanced-java] Date
  • Date: Thu, 28 Mar 2002 14:38:45 -0500

I have a file which contains Date in Date Format, e.g., "Thu 
Mar 28 13:05:55 EST 2002"; however, it is a String.

How can I convert it back to become Date or java.sql.Timestamp 
object again?

I tried,

DateFormat.getInstance().parse(xxx)
Timestamp.valueOf(xxx)

But both cases throw Exception.

Any suggestion?

________________________________________________
Get your own "800" number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag