Date.IsInYearToDate

Syntax

Date.IsInYearToDate(dateTime as any) as nullable logical  

About

指示给定的日期/时间值 dateTime 是否发生在当前年份,并且是当前日期还是当天之前,由系统上的当前日期和时间确定。

  • dateTime:要计算的 A datedatetimedatetimezone 值。

示例 1

确定当前系统时间是否为迄今为止的年份。

用法

Date.IsInYearToDate(DateTime.FixedLocalNow())

输出

true