I am using SimpleDateFormat
class to parse date as follows :
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
But, getting the Parse exception error as follows :
java.text.ParseException: Unparseable date: "2015-09-16 10:21 AM" (at offset 16)
I have checked another format as a argument in SimpleDateFormat
class is :
"yyyy-MM-dd HH:mm:ss a" but, still same error is coming.
Is there any other datetime format I have to pass as a argument of SimpleDateFormat
class ?