public void setDate(Date date) {if (date != null) {setDate(DateTools.dateToString(date, DateTools.Resolution.SECOND));} else {this.date = null;}}

public virtual void SetDate(DateTime? date){if (date.HasValue){SetDate(DateTools.DateToString(date.Value, DateTools.Resolution.SECOND));}else{this.date = null;}}
