|
Previous Top Next |
Prototype: | (Date pDate ),Byte |
pDate | Standard Clarion date to get the week number for. |
Returns | The weeknumber for the date given in pDate. This value corresponds to ISO 8601 standard week calculations. |
This method returns the week number for a given date according to ISO 8601 standard. It dictates that a week begins on a Monday and the first week of the year is the week containing the first Thursday after January 1st or equivalently the week that includes January 4th.
Example:
ITD ITDateClass
Code
Message('The week number for ' & Format(Today(),@d18) & ' is ' & ITD.GetWeekNumber(Today()))
See also:
http://en.wikipedia.org/wiki/ISO_8601#Week_dates