STARTOFLASTWEEK

Returns the start date of the previous week. The time returned is 12:00 AM.

Syntax

= STARTOFLASTWEEK()

Parameters

None

Return Type

DateTime. The function returns a Microsoft .NET DateTime object.  Any properties or member functions of the DateTime object can also be accessed or used in formulas.

Examples

Example

Returns

= STARTOFLASTWEEK()

If SYSTEM date is 1/28/2010: 1/17/2010 12:00:00 AM.

= STARTOFLASTWEEK().Day

The day for start of the previous week.

= STARTOFLASTWEEK().AddDays(-7)

The date and time for the start of the week before previous week.

= STARTOFLASTWEEK().AddDays(-7).Day

The day for the start of the week before previous week.

Reference

http://msdn.microsoft.com/en-us/library/system.datetime_members(VS.71).aspx