Re: Week-Number of a given Time.



I don't think there is one, but you could write one pretty easily.

All you have to do is get the date of the year,
COleDateTime::GetDayOfYear(), and divide by 7.
Don't forget to account for partial week at the beginning of year.

AliR.

".rhavin grobert" <clqrq@xxxxxxxx> wrote in message
news:1191950789.745822.323770@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I need a function that does something like

UINT WeekNumber(SYSTEMTIME st)

of course i could programm it, but i know there are some region-
specific rules (when does a week starts, what is the defined 1st week
of the year) and there is also a ISO-standard covering this, but much
more important: it is already coded ... CMonthCalCtrl uses it and its
already implemented in every windows system that has the control.

Does anyone by chance know what function to use, where it is defined
and how to call it?
Does anyone has the sourcecode of MonthCalCtrl32 *g*?

TIA, rhavin;)



.



Relevant Pages

  • Re: Misheberach request
    ... Misheberach lists at the appropriate time. ... your cooking, cleaning etc. ... Not a lot of chance to do that... ...
    (soc.culture.jewish.moderated)
  • OBP 4.17.1 for Sun Blade 1000?
    ... Is there any chance we'll see a release of OBP 4.17.1 for the ... Sun Blade 1000 and its brethren? ... TIA, ...
    (comp.unix.solaris)
  • Re: CG womens road race
    ... Any chance of you posting the result when it's finished? ... I'm sure you'll be more efficient than the BBC;o) TIA ...
    (uk.rec.cycling)
  • PING: Dee Randall
    ... Limey has asked if by some chance you have her killfiled. ... have not replied to any of her posts. ... TIA ... Wayne Boatwright o¿o ...
    (rec.food.cooking)
  • Re: CG womens road race
    ... Any chance of you posting the result when it's finished? ... I'm sure you'll be more efficient than the BBC;o) TIA ...
    (uk.rec.cycling)