net.sf.nachocalendar.components
Class CalendarUtils
java.lang.Object
net.sf.nachocalendar.components.CalendarUtils
public final class CalendarUtils
extends java.lang.Object
Collection of utilities.
static Date | convertToDate(Object o) - Converts Object to Date.
|
static String | getMessage(String key) - Returns a localized message.
|
static boolean | isSameDay(Date d1, Date d2) - Compares two dates.
|
static boolean | isToday(Date date) - Compares provided date with the current Date.
|
convertToDate
public static Date convertToDate(Object o)
throws ParseException
Converts Object to Date.
getMessage
public static String getMessage(String key)
Returns a localized message.
isSameDay
public static boolean isSameDay(Date d1,
Date d2)
Compares two dates.
d1
- first dated2
- second date
- true if both dates are the same day
isToday
public static boolean isToday(Date date)
Compares provided date with the current Date.