[<<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.ClipX.Net --- NG 2 HTML conversion by Dave Pearson