Q. How to convert a String to a Date object?
β
Correct Answer: (A)
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-mm-dd");
sdf.parse(new Date());
You must be Logged in to update hint/solution