Get your CodeRanch badge!*
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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Date conversion" Watch "Date conversion" New topic

Date conversion

shekar narayan

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

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 ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
I agree. Here's the link:
subject: Date conversion
Similar Threads
Question on Creation of a Date Object
WA #1.....word association
Date question
How to get next date of a given date
first date and last date of month