monthIndex

To return a given month as a number out of a string

With this function you extract the number of the month from a string, for example, March will be 3.

This is helpful if the month is only available as a string, i.e. the name of the month, but you need it as a number for further calculation.

Ninox recognizes always the preset language.

Syntax

monthIndex(string)

Return

number

Examples

monthIndex("July")

Result: 7

See also

weekdayIndex, which returns a given weekday name as a number.

Last updated