List of utility methods to do Day of Week Get
String | getDayOfWeek(String format, int calendarField) get Day Of Week String strDate = null; try { Calendar c = new GregorianCalendar(); SimpleDateFormat mSimpleDateFormat = new SimpleDateFormat( format); int week = c.get(Calendar.DAY_OF_WEEK); if (week == calendarField) { strDate = mSimpleDateFormat.format(c.getTime()); ... |
String | getDayOfWeek(String format, int calendarField) get Day Of Week String strDate = null; try { Calendar c = new GregorianCalendar(); SimpleDateFormat mSimpleDateFormat = new SimpleDateFormat( format); int week = c.get(Calendar.DAY_OF_WEEK); if (week == calendarField) { strDate = mSimpleDateFormat.format(c.getTime()); ... |
String | getFirstDayOfWeek(String format) get First Day Of Week return getDayOfWeek(format, Calendar.MONDAY);
|
String | getFirstDayOfWeek(String format) get First Day Of Week return getDayOfWeek(format, Calendar.MONDAY);
|
String | getLastDayOfWeek(String format) get Last Day Of Week return getDayOfWeek(format, Calendar.SUNDAY);
|
String | getLastDayOfWeek(String format) get Last Day Of Week return getDayOfWeek(format, Calendar.SUNDAY);
|
int | getCurrentDayOfWeek() get Current Day Of Week Calendar calendar = Calendar.getInstance(); int weekday = calendar.get(Calendar.DAY_OF_WEEK); return weekday; |
int | getFirstDayOfWeek(Context context) Get mFirst day of week as android.text.format.Time constant. return Time.MONDAY;
|
int | getFirstDayOfWeekAsCalendar(Context context) Get mFirst day of week as java.util.Calendar constant. return convertDayOfWeekFromTimeToCalendar(getFirstDayOfWeek(context));
|