Date.IsInCurrentYear

This function checks if the specified datetime value dateTime falls within the current year, based on the system's current date and time. The input parameter dateTime can be a date, datetime, or datet...

Syntax

Date.IsInCurrentYear(dateTime as any) as nullable logical

About

This function checks if the specified datetime value dateTime falls within the current year, based on the system's current date and time. The input parameter dateTime can be a date, datetime, or datetimezone value for evaluation.

Explanation

Verify whether the current system time falls within the present year. Utilize the Power Query function MDate.IsInCurrentYear(DateTime.FixedLocalNow()). The result will be true.