Class DateUtil

java.lang.Object
org.loboevolution.util.DateUtil

public final class DateUtil extends Object

DateUtil class.

  • Constructor Details

    • DateUtil

      public DateUtil()
  • Method Details

    • determineDateFormat

      public Date determineDateFormat(String dateString, Locale loc)
      Determine SimpleDateFormat pattern matching with the given date string. Returns null if format is unknown. You can simply extend DateUtil with more formats if needed.
      Parameters:
      dateString - The date string to determine the SimpleDateFormat pattern for.
      loc - a Locale object.
      Returns:
      The matching SimpleDateFormat pattern, or null if format is unknown.
      See Also: