Navigation :
Envision Tutorials
Envision Explanation
Envision How-To Guides
Lokad Platform
Envision Reference
- Glossary
- Platform overview
- List of icons
-
_
-
A-B-C
-
D-E-F
-
G-H-I
-
J-K-L
-
M-N-O
--
markdown (disambiguation)
-- match
-- max
-- mean
-- median
-- min
-- mixture
-- mkuid
-- mod
-- mode
-- modules
-- monday
-- montecarlo
-- month
-- monthEnd
-- monthNum
-- monthStart
-- mutable
-- nameof
-- negativeBinomial
-- noGrad
-- noncanonical
-- normal
-- nosort
-- not
-- nthmax
-- number
-- onlycall
-- or
-- order
-- over
-
P-Q-R
-
S-T-U
-
V-W-X
-
Y-Z
Envision Gallery
Envision Specifications
Envision Language
Legacy
monthNum
monthNum, function
def const dash pure monthNum(d: date): number
Returns the month number (1 to 12) for d.
Examples
table T = with
[| as D |]
[| date(2020, 1, 1) |]
[| date(2020, 6, 15) |]
[| date(2020, 12, 31) |]
show table "Month number" with
T.D
monthNum(T.D) as "Month"
This produces the following table:
D
Month
2020-01-01
1
2020-06-15
6
2020-12-31
12
See also