Java Month Get getMonth(int i)

Here you can find the source of getMonth(int i)

Description

get Month

License

Open Source License

Declaration

@SuppressWarnings("deprecation")
    public static int getMonth(int i) 

Method Source Code

//package com.java2s;

import java.util.*;

public class Main {
    @SuppressWarnings("deprecation")
    public static int getMonth(int i) {
        return getCurrentDate().getMonth();
    }//from   w ww .  ja  va  2 s. c  o  m

    public static Date getCurrentDate() {
        return new Date(System.currentTimeMillis());
    }
}

Related

  1. getMonth(Date date)
  2. getMonth(Date date, TimeZone timeZone)
  3. getMonth(Date dt)
  4. getMonth(Date theDate)
  5. getMonth(int i)
  6. getMonth(int month)
  7. getMonth(int month)
  8. getMonth(Integer month)
  9. getMonth(long date, int increment)