File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC 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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Date conversion" Watch "Date conversion" New topic
Author

Date conversion

shekar narayan
Greenhorn

Joined: Mar 14, 2001
Posts: 3
Hi Guys!
can u tell me how to convert a date string to a date object so that i can run a query based on these date fields..
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
Look up the classes java.text.SimpleDateFormat and java.text.DateFormat in your Java API documentation. They are designed for the job of reading and writing dates in various formats.


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
 
Consider Paul's rocket mass heater.
 
subject: Date conversion