mid

Extracts a substring from a string.

mid(String, start, count) → returns string

Argument Reference

String string
Required

The string from which the substring will be extracted.

start numeric
Required

The position of the first character to retrieve.

count numeric
Required

The number of characters to retrieve.

Examples
Sample code invoking the mid function

Grabs the month out of a raw date yyyymmdd value.

mid("20001122", "5", "2")

Expected Result: 11


Fork me on GitHub