Date.DaysInMonth

语法

Date.DaysInMonth(dateTime as any) as nullable number

关于

返回 date、datetime 或 datetimezone 值 dateTime 中月份的天数。

  • dateTime:会为其返回月份天数的 date、datetime 或 datetimezone 值。

示例 1

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

使用情况

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

输出

31

results matching ""

    No results matching ""