* @summary Format the date according to the RFC 7231 standard (https://tools.ietf.org/html/rfc7231#section-7.1.1.1).
5
*
6
* @description
7
* Return the formatted date string in RFC 7231 format.
8
* The result will always be in UTC timezone.
9
*
10
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
11
*
12
* @param date - The original date
13
*
14
* @returns The formatted date string
15
*
16
* @throws `date` must not be Invalid Date
17
*
18
* @example
19
* // Represent 18 September 2019 in RFC 7231 format: