` Comment on an Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Add a comment to an Icetips Article

Please add your comments to this article. Please note that you must provide both a name and a valid email address in order for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!

Your Name:  
Email:  
Header text/Subject:  

Please enter your comment in the box below:

Back to article list   Search Articles     Add Comment     Printer friendly     Direct link  

Par2: Week of year
2001-01-17 -- Julian Martin
 
> How can I determine what week no of the year we are in? !Assumes that Week 1 is defined as 1-7 January. DayOfYear# = (TODAY() - DATE(12, 31, YEAR(TODAY()) - 1)) !Compensates for the lack of a ceiling() which I'm sure used to be in clib IF DayOfYear# % 7 WeekNo# = (DayOfYear# + (7 - (DayOfYear# % 7))) / 7 ELSE WeekNo# = DayOfYear# / 7 END MESSAGE('We are now in Week Number ' & WeekNo#)


Today is May 2, 2024, 2:31 am
This article has been viewed 35118 times.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: