public class DateTimeUtil
extends java.lang.Object
Constructor and Description |
---|
DateTimeUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
formatDate(java.util.Date date)
format date to the format "8/18/2011"
|
static boolean |
within(java.util.Date date,
java.util.Date begin,
java.util.Date end)
check if the date is within
|
static boolean |
within(java.util.Date date,
java.lang.String beginStr,
java.lang.String endStr)
check if the date is within
|
static boolean |
within(java.lang.String dateStr,
java.lang.String beginStr,
java.lang.String endStr)
check if the date is within
|
public static boolean within(java.util.Date date, java.util.Date begin, java.util.Date end)
date
- begin
- end
- public static boolean within(java.util.Date date, java.lang.String beginStr, java.lang.String endStr) throws java.text.ParseException
date
- beginStr
- format "8/18/2007"endStr
- format "8/18/2007"java.text.ParseException
public static boolean within(java.lang.String dateStr, java.lang.String beginStr, java.lang.String endStr) throws java.text.ParseException
dateStr
- beginStr
- format "8/18/2007"endStr
- format "8/18/2007"java.text.ParseException
public static java.lang.String formatDate(java.util.Date date)
date
-