com.pdfunit.util

## Class DateHelper

- java.lang.Object
- - com.pdfunit.util.DateHelper

-     @DoNotObfuscate
      public final class DateHelper
      extends java.lang.Object

  This class provides helpful methods dealing with dates and calendars.
  Since:
    2016.05
  Author:
    Carsten Siedentop, February 2016

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static long` | `MILLISECONDS_30DAYS`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `DateHelper()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static java.util.Calendar` | `getCalendar(java.lang.String dateValue, java.lang.String pattern)` Returning the calendar for the given date string formatted according to the format pattern.
    `static java.util.Calendar` | `getCurrentDateWithoutTime()` This method does what the name suggests.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### MILLISECONDS_30DAYS

          public static final long MILLISECONDS_30DAYS

      See Also:
        Constant Field Values

  - ### Constructor Detail

    - #### DateHelper

          public DateHelper()

  - ### Method Detail

    - #### getCalendar

          public static java.util.Calendar getCalendar(java.lang.String dateValue,
                                       java.lang.String pattern)
                                                throws java.text.ParseException

      Returning the calendar for the given date string formatted according to the format pattern.
      Throws:
        `java.text.ParseException`

    - #### getCurrentDateWithoutTime

          public static java.util.Calendar getCurrentDateWithoutTime()

      This method does what the name suggests.

Copyright (C) PDFUnit.com. See here for license.