mid

Extracts a substring from a string.

mid(String, start, count) → returns String

mid Argument Reference

String
Required

The string from which the substring will be extracted.

start
Required

The position of the first character to retrieve.

count
Required

The number of characters to retrieve.

Examples sample code invoking the mid function


Extract month from date

Grabs the month out of a raw date yyyymmdd value.

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

Expected Result: 11


Fork me on GitHub