I have date in string format of (yyyy-MM-dd), i want to assign this with same format to Date object.
i tried with new SimpleDateFormat(yyy-MM-dd).parse(dateString) and further assigned it to Date, but format not carry.
new SimpleDateFormat(yyy-MM-dd).parse(dateString);
No error in parsing