Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: converting string to date
how to convert String into Date format
Help:java.lang.String and java.sql.Date
JDBC SQL server date format problem
first date and last date of month
How can I get sysdate in java?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013