is Today's Date - Android java.util

Android examples for java.util:Today

Description

is Today's Date

Demo Code


//package com.java2s;
import android.text.format.DateUtils;

import java.util.Date;

public class Main {
    public static boolean isToday(Date time) {
        return isToday(time.getTime());
    }//from   w w w . j  a v  a 2s  .co  m

    public static boolean isToday(long date) {
        return DateUtils.isToday(date);
    }
}

Related Tutorials