Date.StartOfWeek

Date.StartOfWeek(dateTime as nullable datetime, optional firstDay as nullable number) as nullable datetime

返回给定 datedatetimedatetimezone 值的星期的第一个值。

示例:

查找 2011 年 10 月 10 日上午 8:10:32 (#datetime(2011, 10, 10, 8, 10, 32))的星期开始值。

使用情况:

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

输出:

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

results matching ""

    No results matching ""