String to Date
in
Programming Questions
•
3 years ago
I am having a problem converting a string to a Java Date...
as far as i remember i have always done it like this :
SimpleDateFormat dateFormat = new SimpleDateFormat("dd.MM.yy");
Date date = dateFormat.parse("1.1.2001");
but it seems not to work.
I have searched and found several examples and always get the same error:
Unhandle exception type ParceException...
any ideas ?
as far as i remember i have always done it like this :
SimpleDateFormat dateFormat = new SimpleDateFormat("dd.MM.yy");
Date date = dateFormat.parse("1.1.2001");
but it seems not to work.
I have searched and found several examples and always get the same error:
Unhandle exception type ParceException...
any ideas ?
1
