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(dt.getDayOfWeek());
I need to get a day of week.
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(dt.getDayOfWeek());
I need to get a day of week.
Try this:
With reference to http://joda-time.sourceforge.net/userguide.html
getDayOfWeek()
where iDoW can take the values (from class DateTimeConstants)
or dayOfWeek()