<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : CXTPDatePickerControl and WeekNumbers</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : CXTPDatePickerControl and WeekNumbers]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 30 May 2026 17:54:29 +0000</pubDate>
  <lastBuildDate>Wed, 14 Apr 2010 09:41:24 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=16469</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[CXTPDatePickerControl and WeekNumbers : http://forum.codejock.com/forum_posts.asp?TID=15685You...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16469&amp;PID=58073&amp;title=cxtpdatepickercontrol-and-weeknumbers#58073</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4605">zitz</a><br /><strong>Subject:</strong> 16469<br /><strong>Posted:</strong> 14 April 2010 at 9:41am<br /><br />http://forum.codejock.com/forum_posts.asp?TID=15685<br>You need to set CXTPDatePickerControl::SetFirstWeekOfYearDays(<b>4</b>)<br><br>int CXXXUtils::GetFirstWeekOfYearDays()<br>{<br>&nbsp;&nbsp;&nbsp; LCID lcLocalId = __lc_handle&#091; LC_TIME &#093;;<br>&nbsp;&nbsp;&nbsp; switch ( lcLocalId ) // &#1057;&#1090;&#1088;&#1072;&#1085;&#1099; &#1074; &#1082;&#1086;&#1090;&#1086;&#1088;&#1099;&#1093; &#1076;&#1077;&#1081;&#1089;&#1090;&#1074;&#1091;&#1077;&#1090; ISO 8601<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; case 1036: // &#1092;&#1088;&#1072;&#1085;&#1094;&#1080;&#1103;<br>&nbsp;&nbsp;&nbsp; case 1049: // &#1088;&#1086;&#1089;&#1089;&#1080;&#1103;<br>&nbsp;&nbsp;&nbsp; case 3082: case 1034:// &#1080;&#1089;&#1087;&#1072;&#1085;&#1080;&#1103;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return 4;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; break;<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; TCHAR szResult&#091; 5 &#093;;<br>&nbsp;&nbsp;&nbsp; int nResult = ::GetLocaleInfo( lcLocalId, LOCALE_IFIRSTWEEKOFYEAR , szResult, 4 );<br>&nbsp;&nbsp;&nbsp; ASSERT( nResult == 2 );<br><br>&nbsp;&nbsp;&nbsp; int iFirstWeekOfYearDays = _ttoi( szResult );<br>&nbsp;&nbsp;&nbsp; if ( iFirstWeekOfYearDays == 2 )<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return 4;<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; return 1;<br>}<br><br>]]>
   </description>
   <pubDate>Wed, 14 Apr 2010 09:41:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16469&amp;PID=58073&amp;title=cxtpdatepickercontrol-and-weeknumbers#58073</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPDatePickerControl and WeekNumbers : Hello @all,i search for a possibility...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16469&amp;PID=57659&amp;title=cxtpdatepickercontrol-and-weeknumbers#57659</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1999">FSauer</a><br /><strong>Subject:</strong> 16469<br /><strong>Posted:</strong> 18 March 2010 at 8:47am<br /><br />Hello @all,<br><br>i search for a possibility to set the right WeekNumbers and also a function to get the WeekNumber.<br><br>I'm using CXTPDatePickerControl and set CXTPDatePickerControl::SetShowWeekNumbers(TRUE);<br><br>My problem is, that 01.01.2010 is shown as Weeknumber 1 and it have to be Weeknumber 53.<br><br>By using CXTPDatePickerControl::SetFirstWeekOfYearDays(5); the date 01.01.2010 is shown as Weeknumber 52 and not 53 as expected.<br><br>For any help i'll be very glad.<br><br><br><br>]]>
   </description>
   <pubDate>Thu, 18 Mar 2010 08:47:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16469&amp;PID=57659&amp;title=cxtpdatepickercontrol-and-weeknumbers#57659</guid>
  </item> 
 </channel>
</rss>