18 package org.turro.zkoss.input;
20 import java.util.Date;
21 import org.amic.util.date.Dates;
22 import org.turro.elephant.util.DateFormats;
23 import org.zkoss.zk.ui.WrongValueException;
24 import org.zkoss.zul.Datebox;
32 private boolean withTime;
47 this.withTime = withTime;
59 public Date
getValue() throws WrongValueException {
60 Date value = super.getValue();
61 return value !=
null ? (withTime ? value : Dates.trucateTime(value)) :
null;