Blog Archives

Eclipse Android Java Calendar Start Week On Monday Or Sunday

When using the Calendar class in Android Java the default start of the week is Sunday. To change this use the following function setFirstDayOfWeek Calendar cal; cal.setCalendar(Calendar.getInstance()); cal.setFirstDayOfWeek(Calendar.MONDAY); cal.getInstance() set it to the current date. setFirstDayOfWeek takes an integer. Calendar.MONDAY is

Posted in Android, Tips and Tricks Tagged with: , , ,