File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java SE 8 for the Really Impatient
this week in the
Java in General
converting string to date
Joined: Jul 22, 2010
Jul 22, 2010 21:28:55
for eg:i have a string"02/11/2004"
i want to convert it to date in the same above format
Author and ninkuma
Joined: Jan 10, 2002
Jul 22, 2010 21:47:13
Hint: look in the
Asking smart questions
Books by Bear
Jesper de Jong
Joined: Aug 16, 2005
Jul 23, 2010 00:41:09
Date objects do not have a format. You can parse a
to a Date object using a
object, but the Date object itself doesn't have a format.
If you want to display the Date later, you just have to format it again (using a
object). You specify the format in the
object, not the Date object itself.
Java Beginners FAQ
JavaRanch SCJP FAQ
The Java Tutorial
Java SE 7 API documentation
- My blog about Scala
I agree. Here's the link:
subject: converting string to date
JDBC SQL server date format problem
How can I get sysdate in java?
how to convert String into Date format
first date and last date of month
Help:java.lang.String and java.sql.Date
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014