Jodatime date format
问题 Is it possible to format JodaTime Date. Here is the code: private static LocalDate priorDay(LocalDate date1) { do { date1 = date1.plusDays(-1); } while (date1.getDayOfWeek() == DateTimeConstants.SUNDAY || date1.getDayOfWeek() == DateTimeConstants.SATURDAY); //System.out.print(date1); return date1; } Here date1 returns as: 2013-07-02 but i would like as 02-JUL-13 Thanks in advance 回答1: Is it possible to format JodaTime Date Yes. You want DateTimeFormatter. DateTimeFormatter formatter =