code: public static final Date getDateValue(TimeZone zone, Long dateBoxValue, Long timeBoxValue) {
  
          if (dateBoxValue == null) return null;
  
          Calendar gmt = GregorianCalendar.getInstance(TimeZone.getTimeZone("GMT"));
          gmt.setTimeInMillis(dateBoxValue.longValue());
  
          Calendar cal = GregorianCalendar.getInstance(zone);
          cal.set(gmt.get(Calendar.YEAR), gmt.get(Calendar.MONTH), gmt.get(Calendar.DAY_OF_MONTH));
  
          int hours, minutes, extraMillis;
  
          if (timeBoxValue != null) {
              // figure out how many hours and minutes to add to
              // midnight in the specified time zone.
              long localTimeInDay = timeBoxValue.longValue();
  
              // figure out if there are extra millis in the value
              // (there shoudn't be since the time box control doesn't
              // typically render millis)
              extraMillis = (int) (localTimeInDay % (60 * 1000));
              
              // trim off the seconds
              localTimeInDay -= extraMillis;
  
              minutes = (int) ((localTimeInDay / 60 / 1000) % 60);
              
              // trim off the minutes
              localTimeInDay -= minutes;
  
              hours = (int) (localTimeInDay / 60 / 60 / 1000);
          }
          else {
              // midnight
              hours = 0;
              minutes = 0;
              extraMillis = 0;
          }
  
          cal.set(Calendar.HOUR_OF_DAY, hours);
          cal.set(Calendar.MINUTE, minutes);
          cal.set(Calendar.SECOND, 0);
          cal.set(Calendar.MILLISECOND, 0);
  
          return new Date(cal.getTimeInMillis() + extraMillis);
      }
docs: Returns the {@link Date} for the values of the UTCDateBox and
  UTCTimeBox which were edited in the specified {@link TimeZone}.
  
  @param zone
  The {@link TimeZone} in which the Date was edited.
  @param dateBoxValue
  The value of the {@link UTCDateBox} control.
  @param timeBoxValue
  The value of the {@link UTCTimeBox} control.
  @return The {@link Date} that has been selected from the
  controls or null if the supplied dateBoxValue is null.
  If the timeBoxValue is null, midnight is returned.