code: public void applyPatterns(String[] patterns)
     {
        m_formats = new SimpleDateFormat[patterns.length];
        for (int index = 0; index < patterns.length; index++)
        {
           m_formats[index] = new SimpleDateFormat(patterns[index]);
        }
     }
docs: This method is used to configure the format pattern.
  
  @param patterns new format patterns