Class DateUtils

java.lang.Object
eu.europa.esig.dss.policy.DateUtils

public final class DateUtils extends Object
Contains utils to parse a date
  • Field Details

  • Method Details

    • parseDate

      public static Date parseDate(String format, String dateString)
      Converts the given string representation of the date using the format pattern.
      Parameters:
      format - the format to use
      dateString - the date string representation
      Returns:
      the Date
      Throws:
      IllegalArgumentException - if the conversion is not possible the DSSException is thrown.