<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Week counter</title><link>https://www.infopathdev.com:443/forums/thread/74770.aspx</link><pubDate>Tue, 31 Jan 2012 20:31:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:74770</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/74770.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=74770</wfw:commentRss><description>&lt;p&gt;I wonder if you could try &lt;a href="http://alecpojidaev.wordpress.com/2008/12/30/infopath-codeless-programming-walkthrough-2/"&gt;this&lt;/a&gt; method to get the number of days between the two dates. It seems that if you could get that, you&amp;#39;d be able to then divide by 7 and take the substring of everything before the &amp;quot;.&amp;quot; to effectively round down.&lt;/p&gt;
&lt;p&gt;Otherwise, you&amp;#39;ll need to write custom code, or you could try &lt;a href="http://www.qdabra.com/en/products/qRules_new.aspx"&gt;qRules&lt;/a&gt; - which has a date diff function for getting the number of days between two dates....&lt;/p&gt;</description></item><item><title>Re: Week counter</title><link>https://www.infopathdev.com:443/forums/thread/74757.aspx</link><pubDate>Tue, 31 Jan 2012 18:53:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:74757</guid><dc:creator>BRaZiL</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/74757.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=74757</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi Hilary,&lt;/p&gt;&lt;p&gt;Thanks for the quick reply, but no I dont have InfoPath 2010, I am using the 2007 (I dont know if it could do the same thing). If it is possible to do the same thing in the 2007, how could I do this?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks once again. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Week counter</title><link>https://www.infopathdev.com:443/forums/thread/74750.aspx</link><pubDate>Tue, 31 Jan 2012 16:36:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:74750</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/74750.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=74750</wfw:commentRss><description>&lt;p&gt;Do you happen to be using InfoPath 2010 / SharePoint 2010? And have Excel services installed on your SharePoint server? If so, you can actually use your Excel sheet to return the data to your form via web services instead of needing to write code for this...&lt;/p&gt;</description></item><item><title>Week counter</title><link>https://www.infopathdev.com:443/forums/thread/74746.aspx</link><pubDate>Tue, 31 Jan 2012 16:09:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:74746</guid><dc:creator>BRaZiL</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/74746.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=74746</wfw:commentRss><description>&lt;p&gt;Hi guys and girls,&lt;/p&gt;&lt;p&gt;I have been searching this forum for a couple of days already and i cant find a solution for my &amp;quot;simple&amp;quot; problem.I have a form where my employees have to enter a week number which should be calculated based on the current day.&lt;/p&gt;&lt;p&gt;The company that i work for started counting weeks on Feb 28th 1982, therefore the week that we are currently on is the 1561.&lt;/p&gt;&lt;p&gt;I created a formula on excel where it does the math and all i have to do is enter todays date and the week number is automatically calculate. The formula on excel is =ROUNDDOWN((G1-(DATE(1982,2,28)))/7,0) where G is the column where we enter the dates. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;I have been for days trying to make this work on infopath but im yet to get it done. Please any help is welcome.&lt;/p&gt;&lt;p&gt;Thank you a lot,&lt;/p&gt;&lt;p&gt;BR &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;PS i forgot to name the fields on my infopath form where i enter the dates. Todays date should be entered in a field called Set Date and the field where i want the week to be shown is called Week Date. &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>