IF TEST = 1 { ASSIGN MyDateTime = now } //Returns a portion of a date or time. The variable must contain a numeric //value representing an OLE automation date/time. The unit specifies the date //part TO RETURN. //Possible choices FOR unit are: year, month, day, hour, minute, second, and dow. //Enclose the unit IN double or single quotes, or pass a variable which //contains the unit name. The unit name is CASE sensitive. //[String expression] Returns the string representation of the specified //date part. Month returns the 3 character month abbreviation. Year returns //the full 4 digit year. Hour returns the hour IN 24 hour format. All numeric //values, except year, are prefixed with a 0 IF there are less than two digits. //Dow stands FOR Day of Week and is returned as the full string representation //of the week day, unabbreviated. //[Numeric expression] Returns the numeric representation of the //specified date part. Year returns the full 4 digit year. Hour returns the //hour IN 24 hour format. Dow stands FOR Day of Week and is returned as the //ordinal value FOR the week day where Sunday is 0. ASSIGN StringMyDay = "{MyDateTime.datepart('day')}" ASSIGN NumericMyDay = MyDateTime.datepart('day') ASSIGN StringMyMonth = "{MyDateTime.datepart('month')}" ASSIGN NumericMyMonth = MyDateTime.datepart('month') ASSIGN MyYear = MyDateTime.datepart('year') ASSIGN MyHour = MyDateTime.datepart('hour') ASSIGN MyMinute = MyDateTime.datepart('minute') ASSIGN MySecond = MyDateTime.datepart('second') ASSIGN StringMyDow = "{MyDateTime.datepart('dow')}" ASSIGN NumericMyDow = MyDateTime.datepart('dow')