|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.simoes.util.DateUtil
Utility class for manipulating Dates in Java that I have found useful.
Constructor Summary | |
DateUtil()
|
Method Summary | |
static boolean |
checkDate(int day,
int month,
int year)
Returns a true or false based on the whether or not the date is valid. |
static java.util.Calendar |
createCalendar(java.util.Date date)
|
static java.lang.String |
createDateOnlyFilename(java.util.Date d)
Creates a String that represents the Date passed in. |
static java.lang.String |
createDateOnlyString(java.util.Date d)
Creates a String that represents the Date passed in, using the format passed in. |
static java.lang.String |
createDateString()
Creates a String that represents the current Date and Time. |
static java.lang.String |
createDateString(java.util.Date d)
Creates a String that represents the Date passed in. |
static java.lang.String |
createDateString(java.lang.String d)
Creates a String formatted properly based on the Date passed in. |
static java.sql.Date |
utilDate2SQLDate(java.util.Date d)
|
static java.sql.Timestamp |
utilDate2Timestamp(java.util.Date d)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DateUtil()
Method Detail |
public static java.sql.Date utilDate2SQLDate(java.util.Date d)
public static java.sql.Timestamp utilDate2Timestamp(java.util.Date d)
public static java.lang.String createDateString()
public static java.lang.String createDateString(java.util.Date d)
public static java.lang.String createDateString(java.lang.String d)
public static java.lang.String createDateOnlyString(java.util.Date d)
public static java.lang.String createDateOnlyFilename(java.util.Date d)
public static java.util.Calendar createCalendar(java.util.Date date)
public static boolean checkDate(int day, int month, int year)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |