|
jBPM Console NG - Human Tasks Client 6.0.0.Beta3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jbpm.console.ng.ht.client.util.DateUtils
public class DateUtils
Provides utility methods for manipulating with Dates.
| Constructor Summary | |
|---|---|
DateUtils()
|
|
| Method Summary | |
|---|---|
static boolean |
areDatesEqual(Date firstDate,
Date secondDate)
Determines if two dates are equal based only on day, month and year. |
static int |
compareDates(Date firstDate,
Date secondDate)
Compares two dates based only on day, month and year. |
static Date |
createDate(String dateString)
Creates new Date object using default format - "yyyy-MM-dd" (e.g. 2013-04-25). |
static Date |
createDate(String dateString,
String dateFormat)
Creates new Date object from specified date string and date format. |
static DateRange |
getMonthDateRange(Date date)
Returns a DateRange starting on first day of month in which the specified date is and ending on last day of that
month. |
static DateRange |
getWeekDateRange(Date date)
Returns a DateRange starting on first working day of week in which the specified date is and ending on last
working day (Friday) of that week. |
static boolean |
isDateInRange(Date date,
DateRange dateRange)
Determines if the specified date is within the specified range. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DateUtils()
| Method Detail |
|---|
public static Date createDate(String dateString)
Date object using default format - "yyyy-MM-dd" (e.g. 2013-04-25).
dateString - string representation of date
Date create from string representation
public static Date createDate(String dateString,
String dateFormat)
Date object from specified date string and date format.
dateString - string representationdateFormat - format of the date
Date create from string representationpublic static DateRange getWeekDateRange(Date date)
DateRange starting on first working day of week in which the specified date is and ending on last
working day (Friday) of that week. Total of 5 days are returned.
date - date from which to get the week date range
DateRange representing the week in which the specified date ispublic static DateRange getMonthDateRange(Date date)
DateRange starting on first day of month in which the specified date is and ending on last day of that
month.
date - date from which to get the mont date range
DateRange representing the month in which the specified date is
public static boolean isDateInRange(Date date,
DateRange dateRange)
date - the date to testdateRange - date range to be tested with
public static int compareDates(Date firstDate,
Date secondDate)
firstDate - first datesecondDate - second date
public static boolean areDatesEqual(Date firstDate,
Date secondDate)
firstDate - first datesecondDate - second date
|
jBPM Console NG - Human Tasks Client 6.0.0.Beta3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||