monthofyear The monthofyear function returns the integer number representing the month number of the given year.Syntax monthofyear( Datetime ) CopyArguments Datetime: A datetime.Returns The month number of the given year.Example This example returns 11:print monthofyear( datetime("2025-11-30") ) Copy Run in Cribl Search PreviousPreviousNextNext