cdm/src/main/java/ucar/nc2/units/DateFormatter.java
private Date dateOnlyFormat(String text) throws java.text.ParseException {
    text = (text == null) ? "" : text.trim();
    dateOnlyFormat();
    return dateOnlyFormat.parse(text);
  }
private Date dateOnlyFormat(String text) throws java.text.ParseException {
    text = (text == null) ? "" : text.trim();
    dateOnlyFormat();
    return dateOnlyFormat.parse(text);
  }
private Date dateOnlyFormat ( String text ) throws java . text . ParseException { text = ( text == null ) ? "" : text . trim ( ) ; dateOnlyFormat ( ) ; return dateOnlyFormat . parse ( text ) ; }
Parse text in the format "yyyy-MM-dd"
@param text parse this text
@return equivalent Date
@throws java.text.ParseException if not formatted correctly
Parse text in the format yyyy - MM - dd