<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>AQS on Remko's Blog</title><link>https://remkoweijnen.nl/blog/tags/aqs/</link><description>Recent content in AQS on Remko's Blog</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Fri, 04 Nov 2011 16:05:25 +0000</lastBuildDate><atom:link href="https://remkoweijnen.nl/blog/tags/aqs/index.xml" rel="self" type="application/rss+xml"/><item><title>Construct AQS date range with PowerShell</title><link>https://remkoweijnen.nl/blog/2011/11/04/construct-aqs-date-range-with-powershell/</link><pubDate>Fri, 04 Nov 2011 16:05:25 +0000</pubDate><guid>https://remkoweijnen.nl/blog/2011/11/04/construct-aqs-date-range-with-powershell/</guid><description>&lt;p&gt;&lt;a href="https://remkoweijnen.nl/blog/wp-content/uploads/2011/11/image.webp" class="glightbox" data-type="image" data-gallery="post-2151"&gt;&lt;img loading="lazy" decoding="async" style="margin: 0px 7px 0px 0px; display: inline; float: left" title="image" alt="image" align="left" src="https://remkoweijnen.nl/blog/wp-content/uploads/2011/11/image_thumb.webp" width="53" height="52" /&gt;&lt;/a&gt;For a script I needed to create an AQS (&lt;a href="http://msdn.microsoft.com/en-us/library/aa965711(v=vs.85).aspx" target="_blank"&gt;Advanced Query Syntax&lt;/a&gt;) Query that contained a date range.&lt;/p&gt; &lt;p&gt;An example of such is a range is: &lt;strong&gt;date:11/05/04..11/10/04&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;However we need to account for regional settings where for example the data seperator and the order of day and month may be different.&lt;/p&gt; &lt;p&gt;In my example I wanted to match any data that is 30 days or older so let's do this in PowerShell:&lt;/p&gt;</description></item></channel></rss>