MONTH ( date )
MONTH ( datetime-expression )An expression that evaluates to a DATETIME or DATETIME-TZ. The MONTH function returns the month of the date part of the DATETIME or DATETIME-TZ value.This procedure displays all the Orders that have a PromiseDate in a month that has passed, and whose ShipDate field is the Unknown value (?), which is the initial value of the ShipDate field:
FOR EACH Order NO-LOCK:IF (MONTH(Order.PromiseDate) < MONTH(TODAY) ORYEAR(Order.PromiseDate) < YEAR(TODAY)) AND Order.ShipDate = ? THENDISPLAY Order.OrderNum LABEL "Order Num" Order.PO LABEL "P.O. Num"Order.PromiseDate LABEL "Promised By"Order.OrderDate LABEL "Ordered" termsWITH TITLE "These orders are overdue".END.ADD-INTERVAL function, DATE function, DATE-FORMAT attribute, DATETIME function, DATETIME-TZ function, DAY function, ETIME function, INTERVAL function, ISO-DATE function, MTIME function, NOW function, TIME function, TIMEZONE function, TODAY function, WEEKDAY function, YEAR function, YEAR-OFFSET attribute
© 2012 Progress Software Corporation and/or its subsidiaries or affiliates. |