hi,
am using jdk1.3.1, and i have a function to parse strings to date like this:
public Date stringToDate (String date) {
DateFormat df = DateFormat.getDateTimeInstance();
Date d = null;
try {
d = df.parse(date);
} catch (Exception e) {
.......
}
return d;
}
The date string was of the form "yyyy-mm-dd", but it's always throwing me an unparsable date exception!
What format should i then use for this string
La faim justifie les moyens!
am using jdk1.3.1, and i have a function to parse strings to date like this:
public Date stringToDate (String date) {
DateFormat df = DateFormat.getDateTimeInstance();
Date d = null;
try {
d = df.parse(date);
} catch (Exception e) {
.......
}
return d;
}
The date string was of the form "yyyy-mm-dd", but it's always throwing me an unparsable date exception!
What format should i then use for this string
La faim justifie les moyens!