code: public String formatDate(String format, Locale loc) {
  		MultivaluedMap<String, String> params = new MultivaluedHashMap<>();
  		params.putSingle("format", format);
  		params.putSingle("locale", loc == null ? null : loc.toString());
  		return getEntity(invokeGet("utils/formatdate", params), String.class);
  	}
docs: Formats a date in a specific format.
  @param format the date format
  @param loc the locale instance
  @return a formatted date