I want to parse an String to Date but the date obtained is incorrect. my code is like :
SimpleDateFormat df = new SimpleDateFormat("dd-MMM-yy hh.mm.ss.S a");
date1 = df.parse("17-DEC-19 05.40.39.364000000 PM");
but date1 is: Sat Dec 21 22:47:19 IRST 2019
I need to date: * Dec 17 17:40:39 IRST 2019