Set the given date under the given header name after formatting it as a string
using the pattern {@code "EEE, dd MMM yyyy HH:mm:ss zzz"}. The equivalent of
{@link #set(String, String)} but for date headers.
431623
public void setDate(String headerName, long date) {
		SimpleDateFormat dateFormat = new SimpleDateFormat(DATE_FORMATS[0], Locale.US);
		dateFormat.setTimeZone(GMT);
		set(headerName, dateFormat.format(new Date(date)));
	}
520809
@Override
    public void setDateHeader(String hdr, long value) {
        if (-1L == value) {
            if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                Tr.debug(tc, "setDateHeader(" + hdr + ", -1), removing header");
            }
            this.response.removeHeader(hdr);
        } else {
            this.response.setHeader(hdr, connection.getDateFormatter().getRFC1123Time(new Date(value)));
        }
    }
1312750
public UriTemplate set(String variableName, Date value)
    {
        values.put(variableName, value);
        return this;
    }
1070726
public Response header(String name, Date value) {
        checkCommitted();

        getHeaderMap().put(name, DateUtils.formatForHttpHeader(value));

        return this;
    }
1020072
@Deprecated
    public static void setDate(HttpMessage message, Date value) {
        message.headers().set(HttpHeaderNames.DATE, value);
    }
1046486
@Deprecated
    public static Date getDateHeader(HttpMessage message, String name) throws ParseException {
        return getDateHeader(message, (CharSequence) name);
    }
578047
public synchronized static String formatDate(final java.util.Date object, String pattern) {
		if (pattern == null || pattern.equals("")) {
			pattern = JKFormatUtil.DEFAULT_DATE_PATTERN;
		}
		return JKFormatUtil.getDateFormatter(pattern).format(object);
	}
864992
public void setDate(Date date) {
		dateEditor.setDate(date);
		if (getParent() != null) {
			getParent().invalidate();
		}
	}
901741
public void setHeader(String name, String value) {
//		int pos = 0;
//		int crlfpos = 0;
        Pattern pattern = null;

        if (getHeaders(name) == null && value != null) {
            // header value not found, append to end
            addHeader(name, value);
        } else {
            pattern = getHeaderRegex(name);
            Matcher matcher = pattern.matcher(mMsgHeader);
            if (value == null) {
                // delete header
                mMsgHeader = matcher.replaceAll("");
            } else {
                // replace header
                String newString = name + ": " + value + mLineDelimiter;
                mMsgHeader = matcher.replaceAll(Matcher.quoteReplacement(newString));
            }

            // set into hashtable
            replaceInternalHeaderFields(name, value);
        }
    }
825661
public void putDateField(HttpHeader name, long date) {
        String d = DateGenerator.formatDate(date);
        put(name, d);
    }
812860
public void setDateTime(Date dateTime)
    {
        String dateTimeString = "";
        if (dateTime != null)
    		dateTimeString = dateTimeFormat.format(dateTime);
        jTextField4.setText(dateTimeString);
    }
73304
private static boolean isDateHeader(final Buffer name) {
        try {
            return name.getByte(0) == 'D' && name.getByte(1) == 'a' &&
                    name.getByte(2) == 't' && name.getByte(3) == 'e';
        } catch (final IOException e) {
            return false;
        }
    }
693167
@NonNull
    public Parameters setString(@NonNull String name, String value) {
        return setValue(name, value);
    }
910374
public static String format(Date date, String pattern) {
		return new DateTime(date.getTime()).toString(pattern);
	}
666937
public void set(String name, String namespace, Object value) {
        if (value != null) {
            if (value instanceof Date) {
                attributes.put(new XAttributeName(name, namespace, null), formatDateTime((Date)value));
            } else {
                attributes.put(new XAttributeName(name, namespace, null), value.toString());
            }
        } else {
            attributes.remove(new XAttributeName(name, namespace, null));
        }
    }
431578
public void setTagValue(String name, Date date) {
        removeTag(name);
        XtraTag tag = new XtraTag(name);
        tag.values.addElement(new XtraValue(date));
        tags.addElement(tag);
    }
542567
public void setDate(Date date) {
		for (int i = 0; i < 4; i++) {
			((JDateChooser) components[i]).setDate(date);
		}
	}