Package org.eclipse.birt.core.data
Class DateUtil
java.lang.Object
org.eclipse.birt.core.data.DateUtil
Date util class, which is used to check whether String can be correctly
converted to Date.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
checkValid
(com.ibm.icu.text.DateFormat df, String dateStr) Check whether dateStr can be correctly converted to Date in format of DateFormat.SHORT.
-
Constructor Details
-
DateUtil
public DateUtil()
-
-
Method Details
-
checkValid
Check whether dateStr can be correctly converted to Date in format of DateFormat.SHORT. Here one point must be noticed that dateStr should firstly be able to be converted to Date.- Parameters:
df
-dateStr
-- Returns:
- checkinfo
-