LastDayOfMonth

Top  Previous  Next

S

A

W

WS

ü

ü

Syntax -

LastDayOfMonth <variable name> <DateValue1>

        Where:

       <variable name> is the user defined name that is assigned to the variable.

       <DateValue1> is a literal string that represents a valid date or a variable that contains a date.

 

Description:

       This command is used to value the <variable name> with the date of the last day of the month contained in <DateValue1>.

 

Sample 1:

       The following statement uses the LastDayOfMonth command to determine the date of the last day of the month for the specified date.  The value of DY will be 2/29/2004.

LastDayOfMonth DY "2/20/2004"

 

Sample 2:

       The following statement uses the LastDayOfMonth command and the Reserved Variable, &TODAY, to determine the date of the Last day of the current month.

LastDayOfMonth DW &TODAY