Date.IsInNextNDays

语法

Date.IsInNextNDays(dateTime as any, days as number) as nullable logical

关于

指示给定的日期时间值 dateTime 是否按系统当前日期和时间所确定的那样处于接下来的天数内。 注意,如果传递的值处于当天内,此函数将返回 false。

  • dateTime:要计算的 datedatetimedatetimezone 值。
  • days:天数。

示例 1

确定当前系统时间的后一天是否在接下来的两天中。

使用情况

Date.IsInNextNDays(Date.AddDays(DateTime.FixedLocalNow(), 1), 2)

输出

true

results matching ""

    No results matching ""