www.icetips.com  Icetips Utilities Documentation 11/14/2010    

Date Class: GetWeekNumber

Previous  Top  Next  


Prototype: (Date pDate ),Byte

 

pDateStandard Clarion date to get the week number for.

 

ReturnsThe 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



Direct link to this page: http://www.icetips.com/manuals/utilities/getweeknumber_dateclass.htm