Date d = new Date(value);
long result = defaultValue; String str = getHeaderField(name);
	public long getHeaderFieldDate(String key, long def) {		String value = getHeaderField(key);		if (value == null)			return (def);		// This needs to change since Date(String) is deprecated, but DateFormat		// doesn't seem to be working for some reason		//DateFormat df = DateFormat.getDateInstance(DateFormat.FULL, Locale.US);		//df.setLenient(true);		//Date d = df.parse(value, new ParsePosition(0));		Date d = new Date(value);		if (d == null)			return (def);		return (d.getTime() / 1000);	}