Java SQL Date Create beforeNow(final Date d)

Here you can find the source of beforeNow(final Date d)

Description

before Now

License

Apache License

Declaration

public static boolean beforeNow(final Date d) 

Method Source Code


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

import java.sql.Timestamp;

import java.util.Date;

public class Main {
    public static boolean beforeNow(final Date d) {
        return d.before(new Date());
    }/*  w  w  w. ja  v  a 2 s.c  o  m*/

    public static boolean beforeNow(final Timestamp d) {
        return d.before(new Date());
    }
}

Related

  1. asDate(java.sql.Date sqlDate)
  2. asDate(Object tsObj)
  3. asSqlDate(Date date)
  4. asSqlDate(Date date)
  5. asSqlDate(String date)
  6. beginOfDay(Date date)
  7. castToSqlDate(Object value)
  8. convert(Date date)
  9. convertDate(java.sql.Date date)