Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Advanced-java] Date
- From: rajesh.singh@xxxxxx (Singh, Rajesh)
- Subject: [Advanced-java] Date
- Date: Thu, 28 Mar 2002 14:40:34 -0500
You need to set the Format before you call the parse method -----Original Message----- From: Karen Shiau [mailto:karenshiau@xxxxxxxxxx] Sent: Thursday, March 28, 2002 2:39 PM To: advanced-java@xxxxxxxxxxxxxxxxxxxxxx Subject: [Advanced-java] Date 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 _______________________________________________ Advanced-java mailing list Advanced-java@xxxxxxxxxxxxxxxxxxxxxx http://lists.xcf.berkeley.edu/mailman/listinfo/advanced-java
- Prev by Date: [Advanced-java] Date
- Next by Date: [Advanced-java] Date
- Previous by thread: [Advanced-java] Date
- Next by thread: [Advanced-java] Date
- Index(es):