# GetHTTPTimeString

Returns the legacy HTTP TimeString as specified for the now-obsolete RFC 1123/RCF 822.

Example: `Sat, 10 Jan 2026 17:09:26 GMT`

This method should be used for legacy compatibility with older CFML engines and is not recommended for new code. The updated specification, [RFC 2822](https://www.rfc-editor.org/rfc/rfc2822) should be used for new implemenations. ( e.g. `Sat, 10 Jan 2026 17:09:26 +0000`)

## Method Signature

```
GetHTTPTimeString(date=[any])
```

### Arguments

| Argument | Type  | Required | Description                                                                                         | Default |
| -------- | ----- | -------- | --------------------------------------------------------------------------------------------------- | ------- |
| `date`   | `any` | `false`  | The date object to convert to HTTP time string. If not provided, the current date and time is used. | `now()` |

## Examples

## Related

* [FileUpload](/boxlang-framework/modularity/web-support/reference/built-in-functions/web/fileupload.md)
* [FileUploadAll](/boxlang-framework/modularity/web-support/reference/built-in-functions/web/fileuploadall.md)
* [Forward](/boxlang-framework/modularity/web-support/reference/built-in-functions/web/forward.md)
* [GetHTTPRequestData](/boxlang-framework/modularity/web-support/reference/built-in-functions/web/gethttprequestdata.md)
* [GetPageContext](/boxlang-framework/modularity/web-support/reference/built-in-functions/web/getpagecontext.md)
* [HtmlFooter](/boxlang-framework/modularity/web-support/reference/built-in-functions/web/htmlfooter.md)
* [HtmlHead](/boxlang-framework/modularity/web-support/reference/built-in-functions/web/htmlhead.md)
* [Location](/boxlang-framework/modularity/web-support/reference/built-in-functions/web/location.md)
* [SetEncoding](/boxlang-framework/modularity/web-support/reference/built-in-functions/web/setencoding.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://boxlang.ortusbooks.com/boxlang-framework/modularity/web-support/reference/built-in-functions/web/gethttptimestring.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
