Date date = new GregorianCalendar(2014, Calendar.FEBRUARY, 11).getTime();
or
public static Date parseDate(String date) {
try {
return new SimpleDateFormat("yyyy-MM-dd").parse(date);
} catch (ParseException e) {
return null;
}
}
Date myDate = parseDate("2014-02-14");