Parsing to a date object
Hi all,
I want to parse a string to a certain date format, so I can save it in an oracle 10 database. I have tried several things like:
public void setDatum(String datum) {
SimpleDateFormat df = new SimpleDateFormat("dd/MM/yyyy");
this.datum = df.parse(datum)
}
When I do this the compiler says that df can't parse form Date to Date but, as you can see, I send a String with the parse() method.
BTW -->this.datum is a Date object.
Does anyone had this problem before or have a alternative solution for this.
thnx in advance

