Class DateUtil


  • public class DateUtil
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      DateUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Date formatDate​(java.lang.String strDate)
      Convenience method to convert String to Date in the format you specify on input
      static java.lang.String formatDate​(java.util.Date date)
      Convenience method to convert date to String
      static java.util.Date formatDateTime​(java.lang.String strDate)  
      static java.util.Date formatTime​(java.lang.String strTime)
      Convenience method to convert String to Date in the format you specify on input
      • 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

      • formatDate

        public static final java.lang.String formatDate​(java.util.Date date)
        Convenience method to convert date to String
        Parameters:
        date -
        Returns:
        formatted String
      • formatDate

        public static final java.util.Date formatDate​(java.lang.String strDate)
        Convenience method to convert String to Date in the format you specify on input
        Parameters:
        strDate -
        Returns:
      • formatDateTime

        public static final java.util.Date formatDateTime​(java.lang.String strDate)
        Parameters:
        strDate -
        Returns:
      • formatTime

        public static final java.util.Date formatTime​(java.lang.String strTime)
        Convenience method to convert String to Date in the format you specify on input
        Parameters:
        strTime -
        Returns: