Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Harbour tools help- GT lib - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

WOY()

Gets the week number of the year.
---------------------------------------------------------------------------------

 Syntax

        WOY( <dDate>, <lIso> )  --> nWeek  

 Arguments

        <dDate>     A valid date.    

 Returns

        <nWeek>     The week number <lIso>    Flag that indicates if 
                  <nWeek> is in ISO format.

 Description

      This function returns the week number of the year for a given date.
      It returns the week number in ISO format ( range 0 - 52, by default
      or passing TRUE as second parameter) or 1 - 52 if lIso is FALSE.

 Examples

      ? WOY( DToC( "01/31/2000" ) ) -> 3
      ? WOY( DToC( "01/31/2000" ), FALSE ) -> 4

Status

      Ready

 Compliance

      This function is new in Harbour.

 Platforms

      All

 Files

      Library is libmisc



See Also: DOY()

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