Class DateUtils
- java.lang.Object
-
- org.jbpm.workbench.common.client.util.DateUtils
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_DATE_AND_TIME_FORMAT_MASKstatic StringDEFAULT_DATE_FORMAT_MASKstatic StringDEFAULT_TIME_FORMAT_MASK
-
Constructor Summary
Constructors Constructor Description DateUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DatecreateDate(String dateString)Creates newDateobject using default format - "yyyy-MM-dd" (e.g. 2013-04-25).static DatecreateDate(String dateString, String dateFormat)Creates newDateobject from specified date string and date format.static StringgetDateFormatMask()Check for the system property override, if it isn't existsstatic StringgetDateStr(Date date)static StringgetDateTimeFormatMask()Check for the system property override, if it isn't existsstatic StringgetDateTimeStr(Date date)static StringgetPrettyTime(Date date)
-
-
-
Method Detail
-
createDate
public static Date createDate(String dateString)
Creates newDateobject using default format - "yyyy-MM-dd" (e.g. 2013-04-25).- Parameters:
dateString- string representation of date- Returns:
- new
Datecreate from string representation
-
createDate
public static Date createDate(String dateString, String dateFormat)
Creates newDateobject from specified date string and date format.- Parameters:
dateString- string representationdateFormat- format of the date- Returns:
- new
Datecreate from string representation
-
getDateFormatMask
public static String getDateFormatMask()
Check for the system property override, if it isn't exists
-
getDateTimeFormatMask
public static String getDateTimeFormatMask()
Check for the system property override, if it isn't exists
-
-