if (selectedDate != null) {
date.setTime(selectedDate);
final Content content = getContent();
final DateValueFacet facet = content.getSpecification().getFacet(DateValueFacet.class);
final ObjectAdapter value = facet.createValue(date.getTime());
((TextParseableContent) content).parseTextEntry(value.titleString());
((TextParseableContent) content).entryComplete();
getView().refresh();
}
}
getViewManager().clearOverlayView();