Java tutorial
//package com.java2s; import java.util.Calendar; public class Main { public static Boolean isToday(long millis) { Calendar today = Calendar.getInstance(); today = clearTimes(today); if (millis > today.getTimeInMillis()) return true; return false; } private static Calendar clearTimes(Calendar c) { c.set(Calendar.HOUR_OF_DAY, 0); c.set(Calendar.MINUTE, 0); c.set(Calendar.SECOND, 0); c.set(Calendar.MILLISECOND, 0); return c; } }