Java Month Get getMonth(Date date)

Here you can find the source of getMonth(Date date)

Description

get Month

License

Apache License

Declaration

public static String getMonth(Date date) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    public static String getMonth(Date date) {
        return new SimpleDateFormat("MM").format(date);
    }/*from  w ww.j  a  va2 s.  com*/
}

Related

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