Here you can find the source of getCurrentDay()
public static String getCurrentDay()
//package com.java2s; import java.text.*; public class Main { public static String getCurrentDay() { java.util.Date NowDate = new java.util.Date(); SimpleDateFormat formatter = new SimpleDateFormat("dd"); return formatter.format(NowDate); }/*from w ww . j a v a 2 s. co m*/ }