Here you can find the source of getCurrentDay()
public static Calendar getCurrentDay() throws ParseException
//package com.java2s; //License from project: Open Source License import java.text.ParseException; import java.util.Calendar; public class Main { public static Calendar getCurrentDay() throws ParseException { Calendar cal = Calendar.getInstance(); return cal; }/*from w w w.j a v a 2s . co m*/ }