<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Convert Date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Convert-Date/m-p/1157133#M918751</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, do you mean something like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="PersianDate.JPG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/124767_PersianDate.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;If yes, I would say that's not possible on Qlikview. At least not without a thirdparty software. Maybe you could find something useful here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://market.qlik.com/" title="https://market.qlik.com/"&gt;QlikMarket&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps,&lt;/P&gt;&lt;P&gt;Andrés&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 May 2016 08:18:17 GMT</pubDate>
    <dc:creator>andrespa</dc:creator>
    <dc:date>2016-05-17T08:18:17Z</dc:date>
    <item>
      <title>Convert Date</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Date/m-p/1157130#M918748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi every body&lt;/P&gt;&lt;P&gt;I have a qlikview file and i want get system date and change it to persian date&lt;/P&gt;&lt;P&gt;and after i want show persian date at text box&lt;/P&gt;&lt;P&gt;please help me&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Date/m-p/1157130#M918748</guid>
      <dc:creator>mr_ramshini</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Date</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Date/m-p/1157131#M918749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=WeekDay(today())&amp;amp;',&amp;nbsp; '&amp;amp; Date(Date#(today(), 'MM/DD/YYYY'), 'MMM DD, YYYY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here today() is todays date i.e, system date&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 03:27:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Date/m-p/1157131#M918749</guid>
      <dc:creator />
      <dc:date>2016-05-17T03:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Date</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Date/m-p/1157132#M918750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi saikrishna&lt;/P&gt;&lt;H5 class="simple" style="padding-top: 8px; font-size: 20px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks for your help but i need to convert system date to persian date and after show it on textbox&lt;/H5&gt;&lt;P&gt;please help me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 04:09:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Date/m-p/1157132#M918750</guid>
      <dc:creator>mr_ramshini</dc:creator>
      <dc:date>2016-05-17T04:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Date</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Date/m-p/1157133#M918751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, do you mean something like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="PersianDate.JPG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/124767_PersianDate.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;If yes, I would say that's not possible on Qlikview. At least not without a thirdparty software. Maybe you could find something useful here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://market.qlik.com/" title="https://market.qlik.com/"&gt;QlikMarket&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps,&lt;/P&gt;&lt;P&gt;Andrés&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 08:18:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Date/m-p/1157133#M918751</guid>
      <dc:creator>andrespa</dc:creator>
      <dc:date>2016-05-17T08:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Date</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Date/m-p/1157134#M918752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is something else that could be useful for you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/117104" style="font-size: 10pt; line-height: 1.5em;" title="https://community.qlik.com/thread/117104"&gt;https://community.qlik.com/thread/117104&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apparently as I said before, Qlikview doesn't support Persian date natively, so you must build a module in another language/tool to convert Gregorian date to persian date, and then export it to Qlikview. Not sure how to do that but on that thread and searching on the internet you should find something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Andrés&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 08:25:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Date/m-p/1157134#M918752</guid>
      <dc:creator>andrespa</dc:creator>
      <dc:date>2016-05-17T08:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Date</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Date/m-p/1157135#M918753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;Hi &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;Thanks for your help&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;but i have a qv file and i want show the last execution time to persian date on text box &lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;but i can't solve it&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;please help me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2016 05:24:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Date/m-p/1157135#M918753</guid>
      <dc:creator>mr_ramshini</dc:creator>
      <dc:date>2016-05-18T05:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Date</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Date/m-p/1157136#M918754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, could you please post some sample code or a partial part of your qvd?? Otherwise I'm not going to be able to help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Andrés&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2016 06:40:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Date/m-p/1157136#M918754</guid>
      <dc:creator>andrespa</dc:creator>
      <dc:date>2016-05-18T06:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Date</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Date/m-p/1157137#M918755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andres prado&lt;/P&gt;&lt;H1 class="n fn font-color-white" style="padding-bottom: 15px; font-weight: normal; font-size: 21px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ffffff; background-color: #404040;"&gt;&lt;/H1&gt;&lt;P&gt;please give me your email&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2016 06:53:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Date/m-p/1157137#M918755</guid>
      <dc:creator>mr_ramshini</dc:creator>
      <dc:date>2016-05-18T06:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Date</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Date/m-p/1157138#M918756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I've just sent you a private message with my mail. Please confirm if you got it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Andrés&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2016 06:59:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Date/m-p/1157138#M918756</guid>
      <dc:creator>andrespa</dc:creator>
      <dc:date>2016-05-18T06:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Date</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Date/m-p/1157139#M918757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank Andres&lt;/P&gt;&lt;P&gt;i send it to your mail&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2016 07:01:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Date/m-p/1157139#M918757</guid>
      <dc:creator>mr_ramshini</dc:creator>
      <dc:date>2016-05-18T07:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Date</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Date/m-p/1157140#M918758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hossein&lt;/P&gt;&lt;P&gt;Qlikview Does not support Persian Calendar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Join This Channel In Telegram and See First Post&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Telegram.me/QlikviewGuide&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2016 07:17:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Date/m-p/1157140#M918758</guid>
      <dc:creator />
      <dc:date>2016-05-18T07:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Date</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Date/m-p/1157141#M918759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Hossein,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using a SQL server then you could create this function (found on Stack Overflow) and use it to convert the date?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;"&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;CREATE&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;FUNCTION&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;[&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;CalculatePersianDate&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;]&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;intDate DATETIME &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;RETURNS NVARCHAR&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;max&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;BEGIN&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;DECLARE&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shYear &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;AS&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; INT &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;,@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shMonth &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;AS&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; INT &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;,@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shDay &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;AS&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; INT &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;,@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;intYY &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;AS&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; INT &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;,@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;intMM &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;AS&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; INT &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;,@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;intDD &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;AS&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; INT &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;,@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;Kabiseh1 &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;AS&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; INT &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;,@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;Kabiseh2 &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;AS&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; INT &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;,@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;d1 &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;AS&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; INT &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;,@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;m1 &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;AS&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; INT&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shMaah &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;AS&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; NVARCHAR&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;max&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;),@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shRooz &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;AS&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; NVARCHAR&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;max&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;),@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;DayCnt &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;AS&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; INT&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;DECLARE&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;DayDate &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;AS&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; NVARCHAR&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;max&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;SET&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;intYY &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; DATEPART&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;yyyy&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;intDate&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;IF&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;intYY &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;1000&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;SET&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;intYY &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;intYY &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;+&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;2000&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;SET&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;intMM &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; MONTH&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;(@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;intDate&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;SET&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;intDD &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; DAY&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;(@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;intDate&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;SET&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shYear &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;intYY &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;622&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;SET&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;DayCnt &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;5&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;IF&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;intYY &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;1992&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;%&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;4&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;SET&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;Kabiseh1 &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;ELSE&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;SET&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;Kabiseh1 &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;IF&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shYear &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;1371&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;%&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;4&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;SET&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;Kabiseh2 &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;ELSE&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;SET&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;Kabiseh2 &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;SET&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;m1 &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;SET&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;d1 &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;SET&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shMonth &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;10&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;SET&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shDay &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;11&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;IF&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;intYY &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;1993&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;%&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;4&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;SET&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shDay &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;12&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;WHILE&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;m1 &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;!=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;intMM &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;OR&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;d1 &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;!=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;intDD &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;BEGIN&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;SET&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;d1 &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;d1 &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;+&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;SET&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;DayCnt &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;DayCnt &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;+&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;IF&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;(@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;d1 &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;32&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;AND&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;(@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;m1 &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;OR&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;m1 &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;3&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;OR&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;m1 &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;5&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;OR&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;m1 &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;7&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;OR&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;m1 &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;8&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;OR&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;m1 &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;10&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;OR&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;m1 &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;12&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;))&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;OR&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;(@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;d1 &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;31&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;AND&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;(@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;m1 &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;4&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;OR&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;m1 &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;6&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;OR&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;m1 &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;9&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;OR&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;m1 &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;11&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;))&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;OR&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;(@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;d1 &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;30&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;AND&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;m1 &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;2&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;AND&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;Kabiseh1 &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;OR&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;(@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;d1 &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;29&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;AND&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;m1 &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;2&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;AND&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;Kabiseh1 &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;BEGIN&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;SET&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;m1 &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;m1 &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;+&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;SET&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;d1 &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;END&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;IF&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;m1 &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;12&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;BEGIN&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;SET&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;intYY &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;intYY &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;+&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;SET&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;m1 &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;END&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;IF&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;DayCnt &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;7&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;SET&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;DayCnt &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;SET&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shDay &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shDay &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;+&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;IF&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;(@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shDay &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;32&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;AND&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shMonth &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;7&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;OR&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;(@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shDay &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;31&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;AND&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shMonth &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;6&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;AND&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shMonth &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;12&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;OR&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;(@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shDay &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;31&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;AND&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shMonth &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;12&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;AND&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;Kabiseh2 &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;OR&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;(@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shDay &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;30&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;AND&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shMonth &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;12&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;AND&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;Kabiseh2 &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;BEGIN&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;SET&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shMonth &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shMonth &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;+&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;SET&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shDay &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;END&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;IF&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shMonth &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;12&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;BEGIN&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;SET&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shYear &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shYear &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;+&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;SET&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shMonth &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;END&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;END&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;IF&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shMonth&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;SET&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shMaah&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;N&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #7d2727;"&gt;'فروردین'&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;IF&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shMonth&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;2&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;SET&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shMaah&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;N&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #7d2727;"&gt;'اردیبهشت'&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;IF&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shMonth&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;3&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;SET&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shMaah&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;N&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #7d2727;"&gt;'خرداد'&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;IF&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shMonth&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;4&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;SET&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shMaah&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;N&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #7d2727;"&gt;'تیر'&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;IF&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shMonth&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;5&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;SET&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shMaah&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;N&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #7d2727;"&gt;'مرداد'&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;IF&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shMonth&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;6&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;SET&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shMaah&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;N&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #7d2727;"&gt;'شهریور'&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;IF&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shMonth&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;7&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;SET&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shMaah&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;N&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #7d2727;"&gt;'مهر'&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;IF&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shMonth&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;8&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;SET&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shMaah&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;N&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #7d2727;"&gt;'آبان'&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;IF&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shMonth&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;9&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;SET&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shMaah&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;N&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #7d2727;"&gt;'آذر'&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;IF&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shMonth&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;10&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;SET&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shMaah&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;N&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #7d2727;"&gt;'دی'&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;IF&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shMonth&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;11&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;SET&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shMaah&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;N&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #7d2727;"&gt;'بهمن'&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;IF&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shMonth&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;12&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;SET&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shMaah&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;N&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #7d2727;"&gt;'اسفند'&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;IF&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;DayCnt&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;SET&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shRooz&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;N&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #7d2727;"&gt;'شنبه'&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;IF&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;DayCnt&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;2&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;SET&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shRooz&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;N&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #7d2727;"&gt;'یکشنبه'&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;IF&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;DayCnt&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;3&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;SET&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shRooz&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;N&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #7d2727;"&gt;'دوشنبه'&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;IF&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;DayCnt&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;4&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;SET&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shRooz&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;N&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #7d2727;"&gt;'سه‌شنبه'&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;IF&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;DayCnt&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;5&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;SET&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shRooz&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;N&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #7d2727;"&gt;'چهارشنبه'&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;IF&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;DayCnt&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;6&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;SET&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shRooz&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;N&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #7d2727;"&gt;'پنجشنبه'&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;IF&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;DayCnt&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;7&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;SET&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shRooz&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;N&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #7d2727;"&gt;'جمعه'&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="com" style="color: #858c93;"&gt;--SET @DayDate = @shRooz + " " + LTRIM(STR(@shDay,2)) + " " + @shMaah + " " + STR(@shYear,4)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="com" style="color: #858c93;"&gt;--پنجشنبه 17 اردیبهشت 1394&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="com" style="color: #858c93;"&gt;/*&lt;BR /&gt;SET @DayDate = LTRIM(STR(@shDay,2)) + " " + @shMaah + " " + STR(@shYear,4)&lt;BR /&gt;--17 اردیبهشت 1394&lt;BR /&gt;&lt;BR /&gt;SET @DayDate = STR(@shYear,4) + "/"+LTRIM(STR(@shMonth,2)) + "/" + LTRIM(STR(@shDay,2))&lt;BR /&gt;--1394/2/17&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;--1394/02/17&lt;BR /&gt;*/&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;SET&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;DayDate &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; REPLACE&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;RIGHT&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;STR&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;(@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shYear&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;4&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;),&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;4&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;),&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="str" style="color: #7d2727;"&gt;' '&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="str" style="color: #7d2727;"&gt;'0'&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;+&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="str" style="color: #7d2727;"&gt;'/'&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;+&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; REPLACE&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;STR&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;(@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shMonth&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;2&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;),&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="str" style="color: #7d2727;"&gt;' '&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="str" style="color: #7d2727;"&gt;'0'&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;+&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="str" style="color: #7d2727;"&gt;'/'&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;+&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; REPLACE&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;((&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; STR&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;(@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;shDay&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;2&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;),&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="str" style="color: #7d2727;"&gt;' '&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="str" style="color: #7d2727;"&gt;'0'&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;RETURN&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;DayDate&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;END&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2016 07:49:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Date/m-p/1157141#M918759</guid>
      <dc:creator>Gethyn</dc:creator>
      <dc:date>2016-05-18T07:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Date</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Date/m-p/1157142#M918760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I had the same problem and solved it by loading a calendar table with Gregorian and persian dates and then using this formula:&lt;/P&gt;&lt;P&gt;FieldValue('PersianDate',FieldIndex('Date',YourDateToBeConverted)) &lt;/P&gt;&lt;P&gt;Date and PersianDate are field names of the mentioned table.&lt;/P&gt;&lt;P&gt;Hope this proves to be useful &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2016 07:32:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Date/m-p/1157142#M918760</guid>
      <dc:creator />
      <dc:date>2016-07-18T07:32:30Z</dc:date>
    </item>
  </channel>
</rss>

