Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Date conversion

 
shekar narayan
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic