Java Month Get getMonth()

Here you can find the source of getMonth()

Description

get Month

License

Open Source License

Declaration

public static int getMonth() 

Method Source Code

//package com.java2s;

import java.util.*;

public class Main {

    public static int getMonth() {
        Calendar mycd = Calendar.getInstance();
        return mycd.get(Calendar.MONTH) + 1;
    }/*from ww  w.j  ava2 s  .com*/
}

Related

  1. getMonth()
  2. getMonth()
  3. getMonth()
  4. getMonth()
  5. getMonth()
  6. getMonth(Date d)
  7. getMonth(Date date)
  8. getMonth(Date date)
  9. getMonth(Date date)