Hitachi Vantara Pentaho Community Wiki

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

Returns the month of a date, 1 through 12.

Syntax

Code Block
MONTH( date )

date
format: month/day/year or  year-month-day

year (required) - An integer between 1583 and 9956, or 0 - 99.
month (required) - An integer between 1 and 12 representing month.
day (required) - An integer between 1 and 31 representing day of month.

Examples

Syntax

Result

report: MONTH("6/21/69")

6

report: MONTH("1969-6-21")

6

BDate = "6/21/69"
 
report: MONTH([BDate])

6