current Day and return an int - Android java.util

Android examples for java.util:Day

Description

current Day and return an int

Demo Code


//package com.java2s;

import java.util.Calendar;

public class Main {
    public static int currentDay() {
        Calendar c = Calendar.getInstance();
        int day = c.get(Calendar.DATE);
        return day;
    }/*from   ww  w.j  a  v  a 2s . co m*/
}

Related Tutorials