跳至主要内容

Date.IsInCurrentDay

表示這個日期是否發生在當日 (由系統目前的日期和時間決定)。

Syntax

Date.IsInCurrentDay(
dateTime as any
) as logical

Remarks

表示指定的 datetime 值 dateTime 是否發生在當日 (由系統目前的日期和時間決定)。

  • dateTime: 要評估的 datedatetimedatetimezone 值。

Examples

Example #1

判斷目前系統時間是否在當日。

Date.IsInCurrentDay(DateTime.FixedLocalNow())

Result:

true

Category

Date