How To Convert A String With A Date To A Calendar
SimpleDateFormat sdf = new SimpleDateFormat("dd-MM-yyyy");
Date date = sdf.parse(strDate);
Calendar cal = Calendar.getInstance();
cal.setTime(date);
Calendar (Apple)
Strings
Convert (command)
Data Types
Opinions expressed by DZone contributors are their own.