Hitachi Vantara Pentaho Community Wiki

Versions Compared

Key

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

 Construct date from year, month, and day of month.

Syntax

Syntax: DATE( Integer Year ; Integer Month ; Integer Day )
Returns: Date
Constraints: 1 <= Month <= 12; 1 <= Day <= 31
Semantics: This computes the date's serial number given Year, Month, and Day. Fractional values are truncated.

...

Syntax

Result

=DATE(1969 ; 6 ; 21)

June 21, 1969

=DATE(1 ; 6 ; 21 )

June 21, 1 AD

BYear = 1969
BMonth = 6
BDay = 21
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="78269fabff05dc0a-93324fbe-44b44f40-a51e80ea-54c83210fc2197c4c33827d0"><ac:plain-text-body><![CDATA[=DATE([BYear];[BMonth];[BDay])

June 21, 1969

]]></ac:plain-text-body></ac:structured-macro>