Java Today afterToday(String date)

Here you can find the source of afterToday(String date)

Description

after Today

License

Apache License

Declaration

public static boolean afterToday(String date) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {

    public static boolean afterToday(String date) {

        SimpleDateFormat format = new SimpleDateFormat("yyyyMMdd");
        String today = format.format(new Date());
        if (date.compareTo(today) >= 0) {
            format = null;/*from  www.  j a v  a 2 s  . co  m*/
            return true;
        }
        format = null;
        return false;
    }
}

Related

  1. beforeToday(int days)
  2. converTimeToDayStartEnd(long time, long[] out)
  3. createTodayDirectory(File destDir)
  4. createTodayDirectory(File destDir, String inputFileName)