src/main/java/net/balusc/util/ObjectConverter.java
public static String longToString(Date value) {
    if (value == null) {
      return null;
    }

    SimpleDateFormat sdf = new SimpleDateFormat();
    return sdf.format(value);
  }
public static String longToString(Date value) {
    if (value == null) {
      return null;
    }

    SimpleDateFormat sdf = new SimpleDateFormat();
    return sdf.format(value);
  }
Converts Date to String.

@param value
The value to be converted.
@return Converted value.