I have a string which contains a date \"25 December 1985\". How to parse it using Joda API?
DateTime dt = new DateTime(\"25 December 1985\"); System.out.println(
Try this:
DateTimeFormatter dtf = DateTimeFormat.forPattern("dd MMMM YYYY").withLocale(Locale.ENGLISH); DateTime dt = dtf.parseDateTime("25 December 1985"); System.out.println(dt.getDayOfWeek());