跳到主要内容

Date.StartOfMonth

返回月开始值。

Syntax

Date.StartOfMonth(
dateTime as any
) as any

Remarks

返回包含 dateTime 的月开始值。 dateTime 必须为datedatetime值。

Examples

Example #1

查找 2011 年 10 月 10 日上午 8:10:32 的月开始值。

Date.StartOfMonth(#datetime(2011, 10, 10, 8, 10, 32))

Result:

#datetime(2011, 10, 1, 0, 0, 0)

Category

Date