Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Clipper Tools One Guide - <b>week()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
WEEK()

Syntax:     WEEK([<expD>])

Arguments:  <expD> denotes a date to calculate the week number in
            which it lies.

Returns:    A numeric value.
            The value is the week number in the tear containing the day
            determined by <expD>.

Usage:      In many financial or payroll calculations, information
            concerning the week in the year is frequently required.  This
            function will determine this week, taking into consideration all
            the rules of the calendar.

Notes:      WEEK() will default to the system date if no argument is
            passed.  A null date will return 0.

Library:    CT1.LIB


--------------------------------- Example ------------------------------

Examples:   * Determining the week of a date.

            date = CTOD("03/14/88")

            ? "The date lies in week: " + WEEK(date)



Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson