code: private JSONValue dateToJson(Date d) {
  
          return null != d ? new JSONString(Long.toString(d.getTime())) : null;
      }
docs: Convert a date to the String representation we use in the JSON.
  @param d the date to convert
  @return the String representation we use in the JSON.