HTTP headers are used to pass additional information with HTTP response or HTTP request. Date HTTP header contains the date and time at which the message was generated. It is supported by all the browsers.
Date: day-name, day month year hour:minute:second GMT
- day-name: It is case sensitive directive and specifies the day name when message was generated. The values it can have “Mon”, “Tue”, “Wed”, “Thu”, “Fri”, “Sat”, or “Sun” as value.
- day: It specifies the day of month in 2 digit format. It can have values ranging from ’00’ to ’31’. For ex. 01, 21, 29
- month: It specifies the month name and is case sensitive. It can have “Jan”, “Feb”, “Mar”, “Apr”, “May”, “Jun”, “Jul”, “Aug”, “Sep”, “Oct”, “Nov”, “Dec” as value.
- year: It specifies the year in 4 digit format. For ex 2019, 2018.
- hour: It specifies hour in 24 hour, 2 digit format. It can have values ranging from ’00’ to ’23’. For ex. 10, 21
- minute: It specifies minute in 2 digit format. It can have values ranging from ’00’ to ’59’. For ex. 05, 21
- second: It specifies second in 2 digit format. It can have values ranging from ’00’ to ’59’. For ex. 05, 21
- GMT: GMT stands for Greenwich mean time.
Date: Wed, 16 Oct 2019 07:28:00 GMT
Supported Browsers: The browsers compatible with HTTP headers date are listed below:
- Google Chrome
- Internet Explorer
- HTTP headers | Access-Control-Expose-Headers
- HTTP headers | Access-Control-Allow-Headers.
- HTTP headers | Access-Control-Request-Headers
- How to validate if input date (end date) in input field must be after a given date (start date) using express-validator ?
- How to validate if input date (start date) in input field must be before a given date (end date) using express-validator ?
- HTTP headers | Location
- HTTP headers | User-Agent
- HTTP headers | Link
- HTTP headers | Save-Data
- HTTP headers | Content-Type
- HTTP headers | X-Forwarded-Proto
- HTTP headers | X-XSS-Protection
- HTTP headers | X-Frame-Options
- HTTP headers | Last-Modified
- HTTP headers | Cookie
- HTTP headers | Strict-Transport-Security
- HTTP headers | Expect
- HTTP headers | Accept-Encoding
- HTTP headers | Proxy-Authenticate
- HTTP headers | Content-Range
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.