Returns the calendar week for a date


     WEEK([<dDate>]) --> nWeekOfYear


     <dDate>  Designates a date for which the week it lies in, is
     determined.  The default is the system date.


     WEEK() returns a sequential week number that designates in which week of
     the year <dDate> lies.


     The week of the year in which a day lies is information required by a
     number of technical financial calculations or wage accounting.  This
     function determines this week and acknowledged all calendar rules.


     .  When no date is specified, then WEEK() uses the system date.
        An empty date leads to a 0 result.


     Determine the week for a date:

     dDate  :=  CTOD("03/14/92")

     ? "This date is in week:  ", WEEK(dDate)


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.