code: public static Date parseDate(final String sDate, final Locale locale) {
          Date date = parseW3CDateTime(sDate, locale);
          if (date == null) {
              date = parseRFC822(sDate, locale);
              if (date == null && ADDITIONAL_MASKS.length > 0) {
                  date = parseUsingMask(ADDITIONAL_MASKS, sDate, locale);
              }
          }
          return date;
      }
docs: Parses a Date out of a String with a date in W3C date-time format or in a RFC822 format.
  <p>
  
  @param sDate string to parse for a date.
  @return the Date represented by the given W3C date-time string. It returns <b>null</b> if it
  was not possible to parse the given string into a Date.