Class 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

      Constructors 
      Constructor Description
      DateUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      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