This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes how to convert String into Date format Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "how to convert String into Date format" Watch "how to convert String into Date format" New topic
Author

how to convert String into Date format

VGR VIJAY
Greenhorn

Joined: Mar 02, 2006
Posts: 1
How to convert a string into a date format with date and time.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

"date format"? Do you mean a Date object? If so, look at java.text.DateFormat and its various parse methods.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Shaan Shar
Ranch Hand

Joined: Dec 27, 2005
Posts: 1249

You should specify that in which format you are giving me the string then I can suggest you some method or function. But at least from your site I need that in which format you are specifying the String. Because there are so many format for Date . Now that depends on you in which format you need the date.


The Best way to predict your future is to create it - Every great individual common man
 
wood burning stoves
 
subject: how to convert String into Date format
 
Similar Threads
Get the Difference between 2 dates
How to convert String to EBCIDC format
conversion
String conversion
String to Date?