Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

month(date)

Package

Alias

Pkg Usage

Description

Excerpt
hiddentrue

Returns a number representing the month of the provided date (1-12).

Returns a number representing the month of the provided date (1-12).

Parameters

Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

Parameter name

Type

Required

Description

date

Date

Yes

Specifies a Date or a DateTime expression.

Return Type

Number

Examples

Example 1

Code Block
languagejs
print("Month is " + month(currentDate()));

Example 2

Code Block
languagejs
date varDateTime = "2011-08-17T18:30:55";
print("Month is " + month(varDateTime));

Print - Month is 8

See also

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "date_routine" and space = currentSpace ( )
labelsarray_routines