<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: SharePoint Frustrations #1: The undocumented &#34;IncludeTimeValue&#34; CAML attribute</title>
	<atom:link href="http://www.wirwar.com/blog/2008/07/30/sharepoint-frustrations-1-the-undocumented-includetimevalue-caml-attribute/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.wirwar.com/blog/2008/07/30/sharepoint-frustrations-1-the-undocumented-includetimevalue-caml-attribute/</link>
	<description>Blah blah SharePoint blah blah Development blah blah</description>
	<pubDate>Thu, 11 Mar 2010 02:38:58 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: Andy B</title>
		<link>http://www.wirwar.com/blog/2008/07/30/sharepoint-frustrations-1-the-undocumented-includetimevalue-caml-attribute/#comment-17218</link>
		<dc:creator>Andy B</dc:creator>
		<pubDate>Wed, 02 Sep 2009 13:19:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.wirwar.com/blog/?p=74#comment-17218</guid>
		<description>Hi All,
Does this work with the  tag too? I need to isolate conflicting appointments being posted in a calendar list (and of course I need to check for fRecurrence) and I'm using the  tag and setting the SPQuery's CalendarDate property to a date and time, but it still returns some rubbish results :/. I'm having to do this programmatically currently, but would be nicer in a CAML query. I have tried to use the IncludeTimeValue in my query, but it still get spurious results back.

Any help would be great!! 

Thanks
Andy</description>
		<content:encoded><![CDATA[<p>Hi All,<br />
Does this work with the  tag too? I need to isolate conflicting appointments being posted in a calendar list (and of course I need to check for fRecurrence) and I&#8217;m using the  tag and setting the SPQuery&#8217;s CalendarDate property to a date and time, but it still returns some rubbish results :/. I&#8217;m having to do this programmatically currently, but would be nicer in a CAML query. I have tried to use the IncludeTimeValue in my query, but it still get spurious results back.</p>
<p>Any help would be great!! </p>
<p>Thanks<br />
Andy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SB</title>
		<link>http://www.wirwar.com/blog/2008/07/30/sharepoint-frustrations-1-the-undocumented-includetimevalue-caml-attribute/#comment-7666</link>
		<dc:creator>SB</dc:creator>
		<pubDate>Fri, 15 Aug 2008 16:37:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.wirwar.com/blog/?p=74#comment-7666</guid>
		<description>Sorry, I posted wrong code earlieir.Anyways, I finally got it to work. I did not know that the xml would be case sensitive. I added scope=Recursive and changed case on the query xml, and boom! It returned correct results. I did use the U2U CAML query builder to get the correct xml.
Thanks,

using (SPSite sourceSite = new SPSite(sourceUrlProcessed))
{
    using (SPWeb sourceWeb = sourceSite.OpenWeb())
    {
        SPFolder sourceFolder = sourceWeb.GetFolder(sourceUrlProcessed);
        SPList sourceList = sourceWeb.Lists[sourceFolder.ParentListId];
        SPFolderCollection subFolders = sourceFolder.SubFolders;
        string stDate = SPUtility.CreateISO8601DateTimeFromSystemDateTime(this.ToMoveStartDate);
        string endDate = SPUtility.CreateISO8601DateTimeFromSystemDateTime(this.ToMoveEndDate);
        SPQuery query = new SPQuery();
        query.Query = "" + stDate + "" + endDate + "";
        query.ViewAttributes = "Scope='Recursive'";
        query.ViewFields = BuildViewFieldsXml("Title", "Created", "ID", "Name", "State", "FVDate");
        SPListItemCollection sourceItems = sourceList.GetItems(query);
     }
}</description>
		<content:encoded><![CDATA[<p>Sorry, I posted wrong code earlieir.Anyways, I finally got it to work. I did not know that the xml would be case sensitive. I added scope=Recursive and changed case on the query xml, and boom! It returned correct results. I did use the U2U CAML query builder to get the correct xml.<br />
Thanks,</p>
<p>using (SPSite sourceSite = new SPSite(sourceUrlProcessed))<br />
{<br />
    using (SPWeb sourceWeb = sourceSite.OpenWeb())<br />
    {<br />
        SPFolder sourceFolder = sourceWeb.GetFolder(sourceUrlProcessed);<br />
        SPList sourceList = sourceWeb.Lists[sourceFolder.ParentListId];<br />
        SPFolderCollection subFolders = sourceFolder.SubFolders;<br />
        string stDate = SPUtility.CreateISO8601DateTimeFromSystemDateTime(this.ToMoveStartDate);<br />
        string endDate = SPUtility.CreateISO8601DateTimeFromSystemDateTime(this.ToMoveEndDate);<br />
        SPQuery query = new SPQuery();<br />
        query.Query = &#8220;&#8221; + stDate + &#8220;&#8221; + endDate + &#8220;&#8221;;<br />
        query.ViewAttributes = &#8220;Scope=&#8217;Recursive&#8217;&#8221;;<br />
        query.ViewFields = BuildViewFieldsXml(&#8221;Title&#8221;, &#8220;Created&#8221;, &#8220;ID&#8221;, &#8220;Name&#8221;, &#8220;State&#8221;, &#8220;FVDate&#8221;);<br />
        SPListItemCollection sourceItems = sourceList.GetItems(query);<br />
     }<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SB</title>
		<link>http://www.wirwar.com/blog/2008/07/30/sharepoint-frustrations-1-the-undocumented-includetimevalue-caml-attribute/#comment-7652</link>
		<dc:creator>SB</dc:creator>
		<pubDate>Thu, 14 Aug 2008 22:05:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.wirwar.com/blog/?p=74#comment-7652</guid>
		<description>Hi,
I have spent a whole day on this, but not getting the results I want. I appreciate it if you can help. It returns all the files in the folder. Here's my code,

string sourceUrlProcessed = StringHelper.ProcessStringField(executionContext, SourceUrl);
                    using (SPSite sourceSite = new SPSite(sourceUrlProcessed))
                    {
                        using (SPWeb sourceWeb = sourceSite.OpenWeb())
                        {

                            SPFolder sourceFolder = sourceWeb.GetFolder(sourceUrlProcessed);
                            SPList sourceList = sourceWeb.Lists[sourceFolder.ParentListId];

                            SPFolderCollection subFolders = sourceFolder.SubFolders;
                            string stDate = SPUtility.CreateISO8601DateTimeFromSystemDateTime(this.ToMoveStartDate);
                            string endDate = SPUtility.CreateISO8601DateTimeFromSystemDateTime(this.ToMoveEndDate);
                                
                            
                            foreach (SPFolder subFolder in subFolders)
                            {
                                SPQuery query = new SPQuery();
                                query.Query = "" + stDate + "" + endDate + "";
                                 
                                query.Folder = subFolder;
                                SPListItemCollection files = sourceList.GetItems(query);
                                DebugHelper.Log("Sourcefolder= " + query.Folder.Name);
                                DebugHelper.Log("Count= " + files.Count);

                                foreach (SPListItem file in files)
                                {
                                    DebugHelper.Log("Filenme= " + file.Name);
                                }
                            }
                        }
                    }</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I have spent a whole day on this, but not getting the results I want. I appreciate it if you can help. It returns all the files in the folder. Here&#8217;s my code,</p>
<p>string sourceUrlProcessed = StringHelper.ProcessStringField(executionContext, SourceUrl);<br />
                    using (SPSite sourceSite = new SPSite(sourceUrlProcessed))<br />
                    {<br />
                        using (SPWeb sourceWeb = sourceSite.OpenWeb())<br />
                        {</p>
<p>                            SPFolder sourceFolder = sourceWeb.GetFolder(sourceUrlProcessed);<br />
                            SPList sourceList = sourceWeb.Lists[sourceFolder.ParentListId];</p>
<p>                            SPFolderCollection subFolders = sourceFolder.SubFolders;<br />
                            string stDate = SPUtility.CreateISO8601DateTimeFromSystemDateTime(this.ToMoveStartDate);<br />
                            string endDate = SPUtility.CreateISO8601DateTimeFromSystemDateTime(this.ToMoveEndDate);</p>
<p>                            foreach (SPFolder subFolder in subFolders)<br />
                            {<br />
                                SPQuery query = new SPQuery();<br />
                                query.Query = &#8220;&#8221; + stDate + &#8220;&#8221; + endDate + &#8220;&#8221;;</p>
<p>                                query.Folder = subFolder;<br />
                                SPListItemCollection files = sourceList.GetItems(query);<br />
                                DebugHelper.Log(&#8221;Sourcefolder= &#8221; + query.Folder.Name);<br />
                                DebugHelper.Log(&#8221;Count= &#8221; + files.Count);</p>
<p>                                foreach (SPListItem file in files)<br />
                                {<br />
                                    DebugHelper.Log(&#8221;Filenme= &#8221; + file.Name);<br />
                                }<br />
                            }<br />
                        }<br />
                    }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karine Bosch</title>
		<link>http://www.wirwar.com/blog/2008/07/30/sharepoint-frustrations-1-the-undocumented-includetimevalue-caml-attribute/#comment-7423</link>
		<dc:creator>Karine Bosch</dc:creator>
		<pubDate>Fri, 01 Aug 2008 04:05:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.wirwar.com/blog/?p=74#comment-7423</guid>
		<description>Hi Leon,
I alreay read your post before you left the comment on my blog :)
Thanks for mentioning the U2U CAML Query Builder!
Kind regards,
Karine</description>
		<content:encoded><![CDATA[<p>Hi Leon,<br />
I alreay read your post before you left the comment on my blog <img src='http://www.wirwar.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Thanks for mentioning the U2U CAML Query Builder!<br />
Kind regards,<br />
Karine</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alphonso</title>
		<link>http://www.wirwar.com/blog/2008/07/30/sharepoint-frustrations-1-the-undocumented-includetimevalue-caml-attribute/#comment-7417</link>
		<dc:creator>Alphonso</dc:creator>
		<pubDate>Thu, 31 Jul 2008 20:23:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.wirwar.com/blog/?p=74#comment-7417</guid>
		<description>Wow, this article could have been written by me! I also feel frustrated quite often when working on Sharepoint. I didn't know about this, but I also haven't yet encountered a situation where I needed it.</description>
		<content:encoded><![CDATA[<p>Wow, this article could have been written by me! I also feel frustrated quite often when working on Sharepoint. I didn&#8217;t know about this, but I also haven&#8217;t yet encountered a situation where I needed it.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
