Date.IsInPreviousDay

This function determines if a specific date and time value, referred to as "dateTime", falls within the day prior to the current date and time on the system. It is important to note that this function...

Syntax

Date.IsInPreviousDay(dateTime as any) as nullable logical

About

This function determines if a specific date and time value, referred to as "dateTime", falls within the day prior to the current date and time on the system. It is important to note that this function will return a false value if a dateTime value falls within the current day. Parameter: dateTime - Description: A value that represents a date, date and time, or a combination of date, time, and time zone information, which will be assessed by the system.

Explanation

Check if the day before the current system time falls into the previous day using this technical function: MDate.IsInPreviousDay(Date.AddDays(DateTime.FixedLocalNow(), -1)). The output will be true if it is in the previous day.