Class Dates


  • public final class Dates
    extends java.lang.Object

    Utility methods for working with the Date object

    Since:
    2.0
    Version:
    4.0
    Author:
    Michael Grove
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Date asDate​(java.lang.String theDate)
      Formats the given string as a java.util.Date object.
      static java.lang.String date​(java.util.Date theDate)  
      static java.lang.String datetime​(java.util.Date theDate)  
      static java.lang.String datetimeISO​(java.util.Date theDate)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • asDate

        public static java.util.Date asDate​(java.lang.String theDate)
        Formats the given string as a java.util.Date object.
        Parameters:
        theDate - the date string
        Returns:
        the string as a java.util.Date object
      • date

        public static java.lang.String date​(java.util.Date theDate)
      • datetime

        public static java.lang.String datetime​(java.util.Date theDate)
      • datetimeISO

        public static java.lang.String datetimeISO​(java.util.Date theDate)