Re: Week-Number of a given Time.
- From: "AliR \(VC++ MVP\)" <AliR@xxxxxxxxxxxxx>
- Date: Tue, 9 Oct 2007 14:09:47 -0500
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;)
.
- Follow-Ups:
- Re: Week-Number of a given Time.
- From: .rhavin grobert
- Re: Week-Number of a given Time.
- References:
- Week-Number of a given Time.
- From: .rhavin grobert
- Week-Number of a given Time.
- Prev by Date: Re: This calculation is just wrong / computer can't count!
- Next by Date: Re: Week-Number of a given Time.
- Previous by thread: Week-Number of a given Time.
- Next by thread: Re: Week-Number of a given Time.
- Index(es):
Relevant Pages
|
|