How To Check The Weekday In Android

If you want to check for a specific day in the week use the Calendar.Day_of_Week.

Calendar rightNow = Calendar.getInstance();
if (rightNow.get(Calendar.DAY_OF_WEEK) == Calendar.FRIDAY){
   //do some stuff here

RightNow is todays date. Then it check if the date is a friday.

Posted in Android, Tips and Tricks Tagged with: ,