getmonth The getmonth function gets the month number (1-12) from a datetime.Alias: monthofyearSyntax `getmonth( Datetime )` Arguments Datetime: A datetime.Example This example returns 10:print month = getmonth( datetime(2025-10-14) ) Copy Run in Cribl Search PreviousPreviousNextNext