FirstDayOfMonth |
Top Previous Next |
Syntax - FirstDayOfMonth <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 first day of the month contained in <DateValue1>.
Sample 1: The following statement uses the FirstDayOfMonth command to determine the date of the first day of the month for the specified date. The value of DY will be 2/1/2004. FirstDayOfMonth DY "2/20/2004"
Sample 2: The following statement uses FirstDayOfMonth and the Reserved Variable Name, &TODAY, to determine the date at the beginning of the current month. FirstDayOfMonth DW &TODAY
|