Here you can find the source of isToday(Calendar creationDate)
@SuppressWarnings("static-access") public static boolean isToday(Calendar creationDate)
//package com.java2s; /*// w ww.j a va 2s .c o m * @ (#) CalendarUtils.java * * Copyright (c) 2010 ClickDiagnostics Inc. All Rights Reserved. This software is the * confidential and proprietary information of ClickDiagnostics ("Confidential * Information"). You shall not disclose such Confidential Information and shall * use it only in accordance with the terms of the license agreement you entered * into with ClickDiagnostics. */ import java.util.Calendar; public class Main { @SuppressWarnings("static-access") public static boolean isToday(Calendar creationDate) { Calendar today = Calendar.getInstance(); if (today.DAY_OF_MONTH == creationDate.DAY_OF_MONTH) { if (today.MONTH == creationDate.MONTH) { if (today.YEAR == creationDate.YEAR) { return true; } } } return false; } }