<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/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>How Can I Determine the First Friday in a Month?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2006/08/25/how-can-i-determine-the-first-friday-in-a-month.aspx</link><description>Hey, Scripting Guy! How can I determine the first Friday in a month? -- JB 
 Hey, JB. You know, when we first glanced at this question we were hoping it said, “How can I determine if any given day in a month is a Friday?” Why? Well, if that was the case</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: How Can I Determine the First Friday in a Month?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2006/08/25/how-can-i-determine-the-first-friday-in-a-month.aspx#3365429</link><pubDate>Tue, 02 Nov 2010 12:02:40 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3365429</guid><dc:creator>Derek Figueira</dc:creator><description>&lt;p&gt;Here&amp;#39;s a quick and dirty way of identifying the first Friday in a month.&lt;/p&gt;
&lt;p&gt;#!/bin/ksh&lt;/p&gt;
&lt;p&gt;TODAY=`date +&amp;quot;%a&amp;quot;` &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;# Ddd &amp;nbsp;eg: Mon Tue Wed Thu Fri Sat Sun&lt;/p&gt;
&lt;p&gt;DAYNUMBER=`date +&amp;quot;%d&amp;quot;` &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;# nn &amp;nbsp; eg: 01 - 31&lt;/p&gt;
&lt;p&gt;if &amp;nbsp; [[ $TODAY = &amp;quot;Fri&amp;quot; ]] &amp;amp;&amp;amp; (( $DAYNUMBER &amp;lt;= 07 )) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; then echo &amp;quot;This is the first Frday of the month&amp;quot;&lt;/p&gt;
&lt;p&gt;fi&lt;/p&gt;
&lt;p&gt;exit&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3365429" width="1" height="1"&gt;</description></item></channel></rss>