public class KfsDateUtils extends Object
| Constructor and Description | 
|---|
| KfsDateUtils() | 
| Modifier and Type | Method and Description | 
|---|---|
| static Date | clearTimeFields(Date date)Convert the given java.sql.date into a java.sql.date of which all the time fields are set to 0. | 
| static Date | clearTimeFields(Date date)Convert the given java.util.date into a java.util.date of which all the time fields are set to 0. | 
| static Date | convertToSqlDate(Date date)Converts the given java.util.Date into an equivalent java.sql.Date | 
| static double | getDifferenceInDays(Timestamp startDateTime,
                                      Timestamp endDateTime) | 
| static double | getDifferenceInHours(Timestamp startDateTime,
                                        Timestamp endDateTime) | 
| static boolean | isSameDay(Calendar cal1,
                  Calendar cal2)Adds null-safety to commons.DateUtils isSameDay method. | 
| static boolean | isSameDay(Date date1,
                  Date date2)Adds null-safety to commons.DateUtils isSameDay method. | 
| static Date | newDate(Integer year,
              Integer month,
              Integer day)This method is a utility method to create a new java.sql.Date in one line. | 
| static Date | newDate(Integer year,
              Integer month,
              Integer day,
              Integer hour,
              Integer minute,
              Integer second)This method is a utility method to create a new java.sql.Date in one line. | 
public KfsDateUtils()
public static boolean isSameDay(Date date1, Date date2)
public static boolean isSameDay(Calendar cal1, Calendar cal2)
public static Date convertToSqlDate(Date date)
date - public static Date clearTimeFields(Date date)
date - public static Date clearTimeFields(Date date)
date - public static double getDifferenceInDays(Timestamp startDateTime, Timestamp endDateTime)
startDateTime - endDateTime - public static double getDifferenceInHours(Timestamp startDateTime, Timestamp endDateTime)
startDateTime - endDateTime - public static Date newDate(Integer year, Integer month, Integer day)
year - month - day - public static Date newDate(Integer year, Integer month, Integer day, Integer hour, Integer minute, Integer second)
year - month - day - hour - minute - second - Copyright © 2004–2015 The Kuali Foundation. All rights reserved.