thanks for reply..
i tried the following code to ur suggestion but it shows the
the following error: java.lang.IllegalArgumentException
at java.sql.Date.valueOf(Date.java:104)
java.sql.Date dt = java.sql.Date.valueOf(full_date_time);
I am not able to understand what u are trying to do.
you first converted date to string.
then again converting string to date.
what for?
and second thing, you can't use valueOf(String) function here (I havn't heard of this function in date class, but it might exist for any other purpose) because, how will the date class be knowing what format your date string is in. there are thousands of formats of a date string.
You can get your date object back from string with SimpleDateFormat object only, by using the parse(String) function.
and if the date string is not in the same format as of SimpleDateFormat object then it will throw some parse Exception(I don't remember the exact exception).
But I don't understand why u need to convert date to string in the first place.