Calculating the week number

  • mayivuvu
  • Topic Author
  • Offline
  • New Member
  • New Member
More
17 years 4 months ago #2074 by mayivuvu
Calculating the week number was created by mayivuvu
Hi!!



I would like to calculate number of the week given a specific date. OCONV returns the day of the week and not the week number. If anyone knows how to do this then will you please help me.



Thanks,

Vuyo

Please Log in or Create an account to join the conversation.

More
17 years 3 months ago #2075 by DUBLIN
Replied by DUBLIN on topic week num
E.g.



DATE.IN = TODAY
DATE.IN = ICONV(DATE.IN,'D')
DATE.IN = OCONV(DATE.IN, 'D J')

WEEK.NUM = INT(DATE.IN/7)

IF MOD(DATE.IN,7) THEN WEEK.NUM += 1



Cheers


Please Log in or Create an account to join the conversation.

Time to create page: 0.034 seconds