Java tutorial
//package com.java2s; import java.util.Calendar; public class Main { public static int getCurrentDayOfMonth() { Calendar calendar = Calendar.getInstance(); int currDay = calendar.get(Calendar.DAY_OF_MONTH); return currDay; } }