Convert a string to date, so that i can insert it on SQL database
801477Oct 2 2008 — edited Oct 2 2008Hi, me again..
i have this variable
date.getText()
i want to convert it to date, so i did this:
d = (Date) DateFormat.parse(date.getText());
but it says "Cannot make a static reference to the non-static method parse(String) from the type DateFormat"
what the hell is that?
: \
can someone help? i want the date to correspond to the variable format on my database (DATETIME (yyyy-mm-dd))