Skip to content

InLastFullMonth - Built-in Date & Time Function

Purpose

Returns true if the specified date expression is in the last full month. This means that when the current month is 1, the function returns true when the month from the passed datetime is 12.

Syntax

InLastFullMonth(datetime)

Arguments

Argument Required Description
datetime Yes Any valid datetime expression

Returns

Boolean

See also

Example

Used in a Font Color function

If InLastFullMonth({OrderHeader.Order_Date}) Then
    Return drBlack
Else
    Return drRed
End

Used in a filter function

return InLastFullMonth({OrderHeader.Order_Date})

Notes

  • When the argument cannot be converted to a datetime value, a runtime error is generated.