org.eclipse.birt.core.data
Class DateUtil

java.lang.Object
  extended by org.eclipse.birt.core.data.DateUtil

public class DateUtil
extends java.lang.Object

Date util class, which is used to check whether String can be correctly converted to Date.


Constructor Summary
DateUtil()
           
 
Method Summary
static boolean checkValid(com.ibm.icu.text.DateFormat df, java.lang.String dateStr)
          Check whether dateStr can be correctly converted to Date in format of DateFormat.SHORT.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateUtil

public DateUtil()
Method Detail

checkValid

public static boolean checkValid(com.ibm.icu.text.DateFormat df,
                                 java.lang.String dateStr)
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


Copyright © 2008 Actuate Corp. All rights reserved.