docs: public static Date convertTimeToDate(Date time)
      {
          if (time != null)
          {
              DataConverters.initGlobals();
              Calendar calendar = DataConverters.gCalendar;
              calendar.setTime(time);
              calendar.set(Calendar.HOUR_OF_DAY, 0);
              calendar.set(Calendar.MINUTE, 0);
              calendar.set(Calendar.SECOND, 0);
              calendar.set(Calendar.MILLISECOND, 0);
              time = calendar.getTime();
          }       
          return time;
      }