code: public static String longToString(Date value) {
      if (value == null) {
        return null;
      }
  
      SimpleDateFormat sdf = new SimpleDateFormat();
      return sdf.format(value);
    }
docs: Converts Date to String.
  
  @param value
  The value to be converted.
  @return Converted value.