Here you can find the source of getStringDay(Calendar cal)
public static String getStringDay(Calendar cal)
//package com.java2s; //License from project: Apache License import java.text.SimpleDateFormat; import java.util.Calendar; public class Main { public static String getStringDay(Calendar cal) { return new SimpleDateFormat("dd").format(cal.getTime()); }/*from w ww . j a v a 2s. c om*/ }