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( hb_SToD( "20000131" ) ) // -> 3 ? WOY( hb_SToD( "20000131" ), .F. ) // -> 4
Compliance
This function is new in Harbour.
Platforms
All
Files
Library is libmisc
Seealso
DOY()