Days in a Month

Please let me now how can I extract the number of days a particular month has. Example If January is selected in a enum which has all months listed, it should show it has 31 days or if April is selected it should show 30 days.

Thanx.

Solved Solved
0 4 301
1 ACCEPTED SOLUTION

Somethingl ike below

First Column Type Enum called say [MonthsSelect]

valid If of this column {โ€œJanuaryโ€, February", โ€œFebruary-Leapโ€, โ€œMarchโ€, โ€œAprilโ€, โ€ฆ,โ€œNovembrtโ€, โ€œDecemberโ€}

Second Column Number type called say [MonthDays]
App formula for [MonthDays]

SWITCH([ MonthsSelect], โ€œJanuaryโ€, 31, โ€œFebruaryโ€, 28, โ€œFebruary-Leapโ€, 29, โ€œMarchโ€, 31,โ€œAprilโ€, 30, โ€ฆ,โ€œNovemberโ€, 30, โ€œDecemberโ€, 31, 30)

View solution in original post

4 REPLIES 4
Top Labels in this Space