get Current Month Day - Android java.util

Android examples for java.util:Day

Description

get Current Month Day

Demo Code

import android.annotation.SuppressLint;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class Main{

    public static int getCurrentMonthDay() {
        return Calendar.getInstance().get(Calendar.DAY_OF_MONTH);
    }/*w  w w.j  av  a 2s.com*/

}

Related Tutorials