Date.IsInYearToDate

About

Returns a logical value indicating whether the given Date/DateTime/DateTimeZone occurred in the period starting January 1st of the current year and ending on the current day, as determined by the current date and time on the system.

Syntax

Date. IsInYearToDate(dateTime) as logical  

Arguments

Argument Description
dateTime Check whether this DateTime occurred in the period starting January 1st of the current year and ending on the current day.