get Today Calendar - Java java.util

Java examples for java.util:Day

Description

get Today Calendar

Demo Code


//package com.java2s;
import java.util.Calendar;

public class Main {
    public static void main(String[] argv) throws Exception {
        System.out.println(getTodayCalendar());
    }/*  w  w  w . java  2s.  co  m*/

    public static Calendar getTodayCalendar() {
        Calendar calendar = Calendar.getInstance();
        calendar.setFirstDayOfWeek(Calendar.MONDAY);
        return calendar;
    }
}

Related Tutorials