Java tutorial
//package com.java2s; //License from project: Apache License import java.text.SimpleDateFormat; import java.util.GregorianCalendar; import java.util.Locale; public class Main { private static SimpleDateFormat dfMeseN = new SimpleDateFormat("MM", Locale.ITALIAN); public static String getMeseN(GregorianCalendar cal) { return dfMeseN.format(cal.getTime()); } }