I am trying to initialise a specific date into date object.How can i do that?I tried using the simpledateformat and parse it in from a string,but it gave me a "declare thrown exception" error when i try to run it.
Date joinDate = new Date();
SimpleDateFormat df = new SimpleDateFormat("dd/MM/yyyy");
String join = "12/05/2012" ;
joinDate = df.parse(join);