JSP,Struts and MySQL

I have 2 date fields(say: from , to) in JSP. based on these date, i want to retrieve data from MySQL database. In Database, the date format is "yyyy-mm-dd" but i am using date picker in JSP for entering From date and TO date. Could you please help me how to read these date fields so that i could use them in query

[321 byte] By [Subodh@javaa] at [2007-11-26 22:41:26]
# 1
hi,use date fromatter to formate the date comming from date picker while preparing the query..Surya
Surya_INDa at 2007-7-10 11:56:20 > top of Java-index,Java Essentials,Java Programming...