This content has been marked as final. Show 6 replies
even if I gave the year information, it still doesMeaning what? Please post your current code and what problem you're having.
When you post code, please use[code] and [/code] tags as described in Formatting tips on the message entry page. It makes it much easier to read.
plz helpPlease take the time to write out words such as "please."
java.text.SimpleFormat sdf = new java.text.SimpleDateFormat("yyyy-MM-dd");
java.sql.Date dt = new java.sql.Date(sdf.parse(strDate).getTime());
as cotton advised I user the "yyyy" too, and it worked,i.e I can use the dates properly fron the Jtextfield. But, now when I am comparing the 'dt' with dates stored in my MSAccess, it returns null.
My dates in the table are stored like MM/dd/yyyy.