How To Convert A String With A Date To A Calendar
Join the DZone community and get the full member experience.
Join For Free
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.
Comments