get Now Day - Java java.util

Java examples for java.util:Day

Description

get Now Day

Demo Code


//package com.java2s;

import java.util.Calendar;

public class Main {
    public static void main(String[] argv) throws Exception {
        System.out.println(getNowDay());
    }/*ww w. ja v a2s.  co m*/

    public static int getNowDay() {
        return Calendar.getInstance().get(Calendar.DAY_OF_MONTH);
    }
}

Related Tutorials