java.text.SimpleDateFormat formatter = new java.text.SimpleDateFormat("yyyy-MM-dd");
Date formatedDate = formatter.parse("2005-03-25");