Class DateTimeParser

    • Method Detail

      • caseInsensitiveFormatter

        public static DateTimeFormatter caseInsensitiveFormatter​(String pattern)
        Creates a Case-insensitive formatter using the specified pattern. This method will create a formatter based on a simple pattern of letters and symbols as described in the class documentation. For example, d MMM yyyy will format 2011-12-03 as '3 Dec 2011'. The formatter will use the default FORMAT locale. This function can handle cases like am/AM, pm/PM, Jan/JAN, Feb/FEB etc
        Parameters:
        pattern - the pattern to use, not null
        Returns:
        the formatter based on the pattern, not null
        Throws:
        IllegalArgumentException - if the pattern is invalid