Java tutorial
//package com.java2s; //License from project: Open Source License import android.text.format.DateUtils; import java.util.Date; public class Main { public static boolean isToday(Date time) { return isToday(time.getTime()); } public static boolean isToday(long date) { return DateUtils.isToday(date); } }