Versions Compared

Key

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

...

Info
titleAvailability

This routine is available since starting with katl-commons 1.0.

Syntax

...

month(date)

Description

...

Excerpt

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

Parameters

...

Parameter name

Type

Required

Description

date

date

Yes

Specifies a Date or a DateTime expression

Return type

...

number

Example

...

Example 1

...

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

Example 2

...

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

Print Print  - Month is 8

See

...

also

Filter by label (Content by label)
showLabelsfalse
max100
showSpacefalse
cqllabel = "date_routines"
labelsdate_routines