Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Calendar
  New Posts New Posts RSS Feed - Week number
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Week number

 Post Reply Post Reply
Author
Message
gpm1 View Drop Down
Groupie
Groupie
Avatar

Joined: 06 June 2006
Status: Offline
Points: 54
Post Options Post Options   Thanks (0) Thanks(0)   Quote gpm1 Quote  Post ReplyReply Direct Link To This Post Topic: Week number
    Posted: 27 December 2006 at 12:19pm
Hi.
In the calendar control I can set first day of week  ( Monday, Sunday, etc.  ), but how can I set first week of year. There are several type of it:
First day of week     First week of year contains                     Weeks assigned twice     Used by/in
 -------------------+-----------------------------------------------+---------------------+---------------
Monday               1 January,     1st Sunday,   1–7 days of year     yes                  Most of Europe
Wednesday            1 January,     1st Tuesday,  1–7 days of year     yes    
Saturday             1 January,     1st Friday,   1–7 days of year     yes    
Sunday               1 January,     1st Saturday, 1–7 days of year     yes                  USA
Monday               4 January,     1st Thursday, 4–7 days of year     no                   ISO 8601
Monday               7 January,     1st Monday,   7 days of year       no    

Thanks.


Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post Posted: 14 January 2007 at 3:03pm
Hi,

You have to use FirstWeekOfYearDays property to set what you need.

For example, it should be assigned to 4 for Europe usage.

See following topic for details of how it works: http://forum.codejock.com/forum_posts.asp?TID=5351

--
WBR,
Serge
Back to Top
gpm1 View Drop Down
Groupie
Groupie
Avatar

Joined: 06 June 2006
Status: Offline
Points: 54
Post Options Post Options   Thanks (0) Thanks(0)   Quote gpm1 Quote  Post ReplyReply Direct Link To This Post Posted: 15 January 2007 at 1:58am
Hi,
Thanks for answer.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.