code: public static void setTime(Datebox datebox, Timebox timebox, Date value) {
          value = value == null ? new Date() : value;
          datebox.setValue(DateUtil.stripTime(value));
          timebox.setValue(value);
      }
docs: Sets the UI to reflect the specified time.
  
  @param datebox The date box.
  @param timebox The time box.
  @param value Time value to set.