| Author |
Date Conversion
|
vikassheel gupta
Ranch Hand
Joined: Aug 02, 2005
Posts: 53
|
|
Hi i have a problem related to date i have a string in the "1-Aug-2000" and i want to convert it in the java.util.Date in the same format so how will i do that thanks
|
Warm Regards<br />vikassheelgupta<br />9911005168
|
 |
Nathaniel Stoddard
Ranch Hand
Joined: May 29, 2003
Posts: 1258
|
|
|
Have you looked at DateFormat and SimpleDateFormat. They have a parse method that does what it sounds like you need.
|
Nathaniel Stodard<br />SCJP, SCJD, SCWCD, SCBCD, SCDJWS, ICAD, ICSD, ICED
|
 |
Stuart Gray
Ranch Hand
Joined: Apr 21, 2005
Posts: 410
|
|
|
You will use the parse method in the SimpleDateFormat class.
|
 |
Ernest Friedman-Hill
author and iconoclast
Marshal
Joined: Jul 08, 2003
Posts: 24057
|
|
|
Let's talk about this in Java in General (Beginner).
|
[Jess in Action][AskingGoodQuestions]
|
 |
 |
|
|
subject: Date Conversion
|
|
|