Java tutorial
//package com.java2s; //License from project: Apache License import java.util.Calendar; public class Main { public static int getMonth() { Calendar now = Calendar.getInstance(); return now.get(Calendar.MONTH) + 1; } }