Is there any util in JodaTime to convert day of week (Mon=1, Sun=7) to the java.util constant set (Sun=1, Sat=7)? Or do you really have to write stuff like
return localDate.getDayOfWeek() % 7 + 1;
?
Is there any util in JodaTime to convert day of week (Mon=1, Sun=7) to the java.util constant set (Sun=1, Sat=7)? Or do you really have to write stuff like
return localDate.getDayOfWeek() % 7 + 1;
?