code: public static DateValue convert(DateTimeComponents components) {
  		if (components.hasTime()) {
  			//@formatter:off
  			return new DateTimeValueImpl(
  				components.getYear(),
  				components.getMonth(),
  				components.getDate(),
  				components.getHour(),
  				components.getMinute(),
  				components.getSecond()
  			);
  			//@formatter:on
  		}
  
  		//@formatter:off
  		return new DateValueImpl(
  			components.getYear(),
  			components.getMonth(),
  			components.getDate()
  		);
  		//@formatter:on
  	}
docs: Converts a {@link DateTimeComponents} object to a google-rfc-2445
  {@link DateValue} object.
  @param components the date time components object
  @return the google-rfc-2445 object