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 dfgiornoN = new SimpleDateFormat("d", Locale.ITALIAN); public static String getGiornoNumerio(GregorianCalendar cal) { return dfgiornoN.format(cal.getTime()); } }