Progress
Language Reference


MONTH Function

Interfaces
OS
SpeedScript
All
All
Yes

Returns the month value 1 – 12 of a date you specify.

SYNTAX

MONTH ( date ) 

date

A date expression where you want a month value.

EXAMPLE

This procedure displays all the orders that have a promise-date in a month that has passed, and whose ship-date field is unknown (the initial value of the ship-date field).

r-mon.p
FOR EACH order:
    IF (MONTH(promise-date) < MONTH(TODAY) OR
       YEAR(promise-date) < YEAR(TODAY)) AND ship-date = ?
    THEN DISPLAY order-num LABEL "Order Num" po LABEL "P.O. Num"
                 promise-date LABEL "Promised By"
                 order-date LABEL "Ordered" terms
                 WITH TITLE "These orders are overdue".
END. 

SEE ALSO

DAY Function, WEEKDAY Function, YEAR Function


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095