RFC822DateTimeFormat { public static DateTimeFormatter date() { if (d == null) { d = DateTimeFormat.forPattern("dd MMM yyyy"); } return d; }  static DateTimeFormatter date(); static DateTimeFormatter dateTime(); static DateTimeFormatter forPointInTime(PointInTime t); static DateTimeFormatter forPrecision(Precision p);  }
@Test public void testDateFormat() { Assert.assertEquals("23 Jul 1975", RFC822DateTimeFormat.date().print(new LocalDate(1975, 7, 23))); Assert.assertEquals("23 Jul 1975", RFC822DateTimeFormat.date().print(new LocalDateTime(1975, 7, 23, 10, 23, 55))); }