aspose file tools*
The moose likes Beginning Java and the fly likes Date Conversion Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Date Conversion " Watch "Date Conversion " New topic
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: 24187
    
  34

Let's talk about this in Java in General (Beginner).


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Date Conversion