问题 I am getting a parse exception when trying to parse the time string 02:22 p.m. . I have the following conversion function: public static long convertdatetotimestamp(String datestring, String newdateformat, String olddateformat){ SimpleDateFormat originalFormat = new SimpleDateFormat(olddateformat,Locale.ROOT); SimpleDateFormat targetFormat = new SimpleDateFormat(newdateformat,Locale.ROOT); Date date = null; try { date = originalFormat.parse(datestring); String formattedDate = targetFormat