cdm/src/main/java/ucar/nc2/units/DateFromString.java
public static Date getDateUsingRegExp( String dateString,
                                         String matchPattern,
                                         String substitutionPattern )
  {
    String dateFormatString = "yyyy-MM-dd'T'HH:mm";
    return getDateUsingRegExpAndDateFormat( dateString,
                                            matchPattern,
                                            substitutionPattern,
                                            dateFormatString );
  }
public static Date getDateUsingRegExp( String dateString,
                                         String matchPattern,
                                         String substitutionPattern )
  {
    String dateFormatString = "yyyy-MM-dd'T'HH:mm";
    return getDateUsingRegExpAndDateFormat( dateString,
                                            matchPattern,
                                            substitutionPattern,
                                            dateFormatString );
  }
public static Date getDateUsingRegExp ( String dateString , String matchPattern , String substitutionPattern ) { String dateFormatString = "yyyy-MM-dd'T'HH:mm" ; return getDateUsingRegExpAndDateFormat ( dateString , matchPattern , substitutionPattern , dateFormatString ) ; }
Use regular expression capture group replacement to construct a date
string and return the Date that is obtained by parseing the constructed
date string using the date format string "yyyy-MM-dd'T'HH:mm".

The date string is constructed by matching the given dateString against
the given regular expression matchPattern and then using the capture
groups from the match to replace the capture group references, i.e., "$n", where n is an
integer.

@param dateString the String to be parsed
@param matchPattern the regular expression String on which to match.
@param substitutionPattern the String to use in the capture group replacement.
@return the calculated Date
Use regular expression capture group replacement to construct a date string and return the Date that is obtained by parseing the constructed date string using the date format string yyyy - MM - dd T HH : mm .