Skip to content

InLastFullWeek - Built-in Date & Time Function

Purpose

Returns true if the specified date expression is in the last full week (Sunday to Saturday).

Syntax

InLastFullWeek(datetime)

Arguments

Argument Required Description
datetime Yes Any valid datetime expression

Returns

Boolean

See also

Example

Used in a Font Color function
If InLastFullWeek({OrderHeader.Order_Date}) Then
    Return drBlack
Else
    Return drRed
End
In a filter function
return InLastFullWeek({OrderHeader.Order_Date})

Notes

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