githubEdit

Mid

Extract a substring from a string

Method Signature

Mid(string=[string], start=[integer], count=[integer])

Arguments

Argument
Type
Required
Description
Default

string

string

true

The string to extract from

start

integer

true

The position of the first character to retrieve.

count

integer

false

The number of characters to retrieve.

Examples

Extract month from date

Grabs the month out of a raw date yyyymmdd value.

Run Examplearrow-up-right

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

Result: 11

Additional Examples

Run Examplearrow-up-right

Last updated

Was this helpful?