Insert « Date « JSP-Servlet Q&A

1. date inserting

Hello friends iam having a problem for date Iam checking in form for a input if input is Yes than insert date if NO than insert null..I tried lots of things but error is coming Not a date format if I insert null... can any one tell how is this possible.. sandeep

3. Inserting Date into Ms- Access Using jsp

First try inserting static data from the code, like String str="insert into services values('',?,#01-Jan-2009#)"; If that works then you should get the data from HTML page in the format above, and then you can use the below statement String str="insert into services values('',?,#" & vardate & "#)"; (where vardate is the variable used to store date from the HTML page) Remember ...