Here you can find the source of getNow()
public static final Calendar getNow()
//package com.java2s; import java.util.Calendar; import java.util.GregorianCalendar; public class Main { public static final Calendar getNow() { GregorianCalendar now = new GregorianCalendar(); Calendar dateNow = new GregorianCalendar(now.get(Calendar.YEAR), now.get(Calendar.MONTH), now.get(Calendar.DAY_OF_MONTH)); return dateNow; }/*from www . j av a 2 s . c o m*/ }