Java Date get day of month

Description

Java Date get day of month

import java.util.Calendar;

public class Main {
  public static void main(String[] argv) {
    System.out.println(getNowday());
  }/*ww  w .  j  av  a 2  s. c o  m*/

  public static int getNowday() {
    Calendar cc = Calendar.getInstance();
    return cc.get(Calendar.DATE);
  }
}



PreviousNext

Related