get Current Day in day of month - Android java.util

Android examples for java.util:Day

Description

get Current Day in day of month

Demo Code

import android.util.Log;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

public class Main{

    public static int getCurrentDay() {
        return Calendar.getInstance().get(Calendar.DAY_OF_MONTH);
    }//from w w  w  . j a v  a 2s.c o m

}

Related Tutorials