[Solved] How to parse this date in java : “12/19/2015 8:00:00 AM” [duplicate]

[ad_1]

Just follow the documentation and use the formatting elements that correspond to the string you have:

String strDate = "12/19/2015 8:00:00 AM";
DateFormat df = new SimpleDateFormat("MM/dd/yyyy hh:mm:ss a");
Date date = df.parse(strDate);

[ad_2]

solved How to parse this date in java : “12/19/2015 8:00:00 AM” [duplicate]