Here you can find the source of getDayNumber()
public static String getDayNumber()
//package com.java2s; //License from project: LGPL import java.text.SimpleDateFormat; import java.util.Date; public class Main { /**//w ww . jav a 2 s . c o m * Get the number of the current day * @return The number of the current day */ public static String getDayNumber() { Date date = new Date(); SimpleDateFormat format = new SimpleDateFormat("dd"); String output = format.format(date); return output; } }