code: public Date toDate(Config config, Element el, String attributeName) {
  	DateTime dt = toDateTime(config, el, attributeName);
  	if (dt == null) return null;
  	return new DateImpl(dt);
      }
docs: reads a XML Element Attribute ans cast it to a Date Object
  
  @param el XML Element to read Attribute from it
  @param attributeName Name of the Attribute to read
  @return Attribute Value