Hi,
There is a date field in
JSP form where user will enter date in dd-mm-yyyy format. Now before saving into DB2, I want to validate the date format against dd-mm-yyyy format and then save into DB2.
I've tried reading SimpeDateFormat and other date format classes, but couldn't understand. It will be great if somebody tell the following with code.
1. How to validate Date so that it should satisfy dd-mm-yyyy format?
2. How to insert validated Date in DB2? Where ps.setDate() comes into picture?
Note: The date column in DB2 is of type "DATE".
Bye,
Viki.
[ December 20, 2005: Message edited by: Vikrama Sanjeeva ]