get Current Day as int value - Android java.util

Android examples for java.util:Day

Description

get Current Day as int value

Demo Code


//package com.java2s;

import java.util.Calendar;

public class Main {

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

Related Tutorials