Date.DaysInMonth

语法

Date.DaysInMonth(dateTime as any) as nullable number

关于

返回 datedatetimedatetimezonedateTime 中月份的天数。

  • dateTime:会为其返回月份天数的 datedatetimedatetimezone 值。

示例 1

#date(2011, 12, 01) 表示的十二月的天数。

使用情况

Date.DaysInMonth(#date(2011, 12, 01))

输出

31

results matching ""

    No results matching ""