IF TEST = 1 { ASSIGN MyDateTime = #"{now}" ASSIGN MyBirthday = #"1/24/1973 10:42 PM" } //Returns the difference between two dates. The variable must contain a //numeric value representing an OLE automation date/time. //The unit specifies the date part TO compare and date2 specifies the //date TO compare with the value from the variable. IF date2 is greater //than the value within the variable, the results will be positive. //Possible choices FOR unit are: week, day, hour, minute, and second. //Enclose the unit IN double or single quotes, or pass a variable which //contains the unit name. The unit name is CASE sensitive. //IF the difference is fractional, the RETURN value will be fractional //also. FOR instance, IF the variable contains the date “10/15/2009 6:00 AM” //and date2 is “10/16/2009 6:00 PM”, the result FOR unit day will be 1.5. ASSIGN WeekDiff = datediff("week", MyBirthday, MyDateTime) ASSIGN DayDiff = datediff("day", MyBirthday, MyDateTime) ASSIGN HourDiff = datediff("hour", MyBirthday, MyDateTime) ASSIGN MinuteDiff = datediff("minute", MyBirthday, MyDateTime) ASSIGN SecondDiff = datediff("second", MyBirthday, MyDateTime)