A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
video training course 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 8 API documentation
Don't get me started about those stupid
subject: converting string to date
Help:java.lang.String and java.sql.Date
How can I get sysdate in java?
first date and last date of month
how to convert String into Date format
JDBC SQL server date format problem
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015