internet

Specifies a format for the date function and the convert command.

# Metadata

Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 1.1 Security:

# Syntax

internet

# Examples

put "Date:" && the internet date & return after field "Mail Header"

# Description

Use the internet keyword to work with dates in email headers and other dates generated by standard Internet protocols that use the same format.

The internet form of a date consists of the following parts, separated by spaces:

* the day of the week followed by a comma * the day of the month * the three-letter abbreviation for the month name * the four-digit year * the time in 24-hour format, including seconds, delimited by colons * the four-digit time zone relative to UTC (Greenwich) time

An internet date looks like this: Sun, 28 Oct 2001 17:18:54 -0800

>*Note:* The internet keyword is implemented internally as a > property and appears in the propertyNames. However, it cannot be > used as a property in an expression, nor with the set command.

For technical information about the date format produced by the internet keyword, see [RFC 2822](https://tools.ietf.org/html/rfc2822).

# Tags

# See

- **keyword:** short, abbreviated - **command:** convert, set - **function:** format, propertyNames, date - **control structure:** function - **glossary:** keyword, property, command, protocol, error, expression