 




<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Month names between 2 numeric Cymd format dates</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/month-names-between-2-numeric-cymd-format-dates/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/month-names-between-2-numeric-cymd-format-dates/</link>
	<description></description>
	<lastBuildDate>Sat, 25 May 2013 05:16:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/month-names-between-2-numeric-cymd-format-dates/#comment-108767</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Sun, 24 Jun 2012 21:28:42 +0000</pubDate>
		<guid isPermaLink="false">#comment-108767</guid>
		<description><![CDATA[&lt;i&gt;the pattern of questions from this OP doesn’t seem like those from a typical student.&lt;/i&gt;

I disagree. The pattern seems directly that of a student.

However, this seems to be a student for personal motivation rather than enrolled in a course. That makes me feel more interested in helping.

&lt;i&gt;Providing some general logic doesn’t seem too harmful...&lt;/i&gt;

I agree. I was wondering more in a general context. An assignment due on &quot;Monday&quot; won&#039;t be helped much by a discussion on Wednesday.

Answers could be useful to students in later enrollments, but assignments should be changed and updated anyway. If answers are available, course updates are almost forced. We might see fewer &#039;assignments&#039; requiring RPG II and III. Courses should move into the current century.

For this particular OP, a difficulty has been in keeping a conversation going. Time zones and even days of the week interfere. I&#039;d guess that language doesn&#039;t help. Iit&#039;s harder to get the idea across that help can be given to students, just not answers. Two-way conversation is important for help 

Now, for the problem itself, there are multiple possibilities. The best will probably depend on specific requirements such as whether or not dates are guaranteed to be less than a year apart. (And we know how likely &quot;guarantee&quot; is.)

Consider a 24-element array containing month names January through December twice. Pull the month number from the first date and the duration in months from the two dates. With those two values and the array, you can just zip through the names. (Technically, there should only need to be 23 names since there&#039;d never be a need for the final &quot;December&quot;.) The logic would be trivial. It&#039;s just like positioning along a &#039;number line&#039; and ticking of the integer points.

But the problem itself is a little unlikely, so the particular logic gets meaningless.

Tom]]></description>
		<content:encoded><![CDATA[<p><i>the pattern of questions from this OP doesn’t seem like those from a typical student.</i></p>
<p>I disagree. The pattern seems directly that of a student.</p>
<p>However, this seems to be a student for personal motivation rather than enrolled in a course. That makes me feel more interested in helping.</p>
<p><i>Providing some general logic doesn’t seem too harmful&#8230;</i></p>
<p>I agree. I was wondering more in a general context. An assignment due on &#8220;Monday&#8221; won&#8217;t be helped much by a discussion on Wednesday.</p>
<p>Answers could be useful to students in later enrollments, but assignments should be changed and updated anyway. If answers are available, course updates are almost forced. We might see fewer &#8216;assignments&#8217; requiring RPG II and III. Courses should move into the current century.</p>
<p>For this particular OP, a difficulty has been in keeping a conversation going. Time zones and even days of the week interfere. I&#8217;d guess that language doesn&#8217;t help. Iit&#8217;s harder to get the idea across that help can be given to students, just not answers. Two-way conversation is important for help </p>
<p>Now, for the problem itself, there are multiple possibilities. The best will probably depend on specific requirements such as whether or not dates are guaranteed to be less than a year apart. (And we know how likely &#8220;guarantee&#8221; is.)</p>
<p>Consider a 24-element array containing month names January through December twice. Pull the month number from the first date and the duration in months from the two dates. With those two values and the array, you can just zip through the names. (Technically, there should only need to be 23 names since there&#8217;d never be a need for the final &#8220;December&#8221;.) The logic would be trivial. It&#8217;s just like positioning along a &#8216;number line&#8217; and ticking of the integer points.</p>
<p>But the problem itself is a little unlikely, so the particular logic gets meaningless.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/month-names-between-2-numeric-cymd-format-dates/#comment-108760</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Sun, 24 Jun 2012 12:11:17 +0000</pubDate>
		<guid isPermaLink="false">#comment-108760</guid>
		<description><![CDATA[Yes, this seems like it could be a homework question
But the pattern of questions from this OP doesn&#039;t seem like those from a typical student.
Providing some general logic doesn&#039;t seem too harmfu
And sometimes I need a diversion.
Phil

“If I had followed my better judgment always, my life would have been a very dull one.” 
― Edgar Rice Burroughs]]></description>
		<content:encoded><![CDATA[<p>Yes, this seems like it could be a homework question<br />
But the pattern of questions from this OP doesn&#8217;t seem like those from a typical student.<br />
Providing some general logic doesn&#8217;t seem too harmfu<br />
And sometimes I need a diversion.<br />
Phil</p>
<p>“If I had followed my better judgment always, my life would have been a very dull one.”<br />
― Edgar Rice Burroughs</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/month-names-between-2-numeric-cymd-format-dates/#comment-108755</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Sun, 24 Jun 2012 00:11:34 +0000</pubDate>
		<guid isPermaLink="false">#comment-108755</guid>
		<description><![CDATA[I have thoughts on ways to do it. How long should we wait before working on homework? Assignments become due eventually, so work starts to be less valuable to an OP. But useful solutions/methods can always be good to have on file for all of us.

Tom]]></description>
		<content:encoded><![CDATA[<p>I have thoughts on ways to do it. How long should we wait before working on homework? Assignments become due eventually, so work starts to be less valuable to an OP. But useful solutions/methods can always be good to have on file for all of us.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/month-names-between-2-numeric-cymd-format-dates/#comment-108753</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Sat, 23 Jun 2012 22:50:38 +0000</pubDate>
		<guid isPermaLink="false">#comment-108753</guid>
		<description><![CDATA[So I would see an outer loop from for curyear =  startYear to endYear
Inside would be a number of cases
When startYear = endyear
   Loop from startMonth to endMonth
   DO stuff with MonthName( curMonth)

  When curYear = startYear
     loop from startMonth to 12

  When curYear = endYear
    loop from 1 to endMonth

  Other 
    loop from 1 to 12

end Year loop

Something roughly along those lines]]></description>
		<content:encoded><![CDATA[<p>So I would see an outer loop from for curyear =  startYear to endYear<br />
Inside would be a number of cases<br />
When startYear = endyear<br />
   Loop from startMonth to endMonth<br />
   DO stuff with MonthName( curMonth)</p>
<p>  When curYear = startYear<br />
     loop from startMonth to 12</p>
<p>  When curYear = endYear<br />
    loop from 1 to endMonth</p>
<p>  Other<br />
    loop from 1 to 12</p>
<p>end Year loop</p>
<p>Something roughly along those lines</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/month-names-between-2-numeric-cymd-format-dates/#comment-108707</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Thu, 21 Jun 2012 23:45:07 +0000</pubDate>
		<guid isPermaLink="false">#comment-108707</guid>
		<description><![CDATA[So can you get the startYear, endYear, StartMonth, and EndMonth from the date?
Phil]]></description>
		<content:encoded><![CDATA[<p>So can you get the startYear, endYear, StartMonth, and EndMonth from the date?<br />
Phil</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/month-names-between-2-numeric-cymd-format-dates/#comment-108671</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Thu, 21 Jun 2012 05:57:17 +0000</pubDate>
		<guid isPermaLink="false">#comment-108671</guid>
		<description><![CDATA[&lt;i&gt;...but in my example I have given as 1110128( so 11month gap oly)&lt;/i&gt;

I understand your example. I want to know about the process beyond just the example.

Without a description of the whole process, it sounds like an academic assignment or schoolwork or interview problems; and we can&#039;t do work on those.

If that&#039;s what it is, we need to see the work that &lt;b&gt;you have done&lt;/b&gt; first. Then we help to guide you past obstacles and into ways of solving the problem.

If that&#039;s not what it is, then it should not be difficult for you to describe how we should handle the examples that I gave.

Tom]]></description>
		<content:encoded><![CDATA[<p><i>&#8230;but in my example I have given as 1110128( so 11month gap oly)</i></p>
<p>I understand your example. I want to know about the process beyond just the example.</p>
<p>Without a description of the whole process, it sounds like an academic assignment or schoolwork or interview problems; and we can&#8217;t do work on those.</p>
<p>If that&#8217;s what it is, we need to see the work that <b>you have done</b> first. Then we help to guide you past obstacles and into ways of solving the problem.</p>
<p>If that&#8217;s not what it is, then it should not be difficult for you to describe how we should handle the examples that I gave.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 22917</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/month-names-between-2-numeric-cymd-format-dates/#comment-108669</link>
		<dc:creator>22917</dc:creator>
		<pubDate>Thu, 21 Jun 2012 03:42:26 +0000</pubDate>
		<guid isPermaLink="false">#comment-108669</guid>
		<description><![CDATA[What about these dates:

date1 = 1100128 ( which is 2010-01-28 : January)

date2 = 1120101 (which is 2012-01-01 ;January)

Because they cover more than one year, it results in 23 months.


Here Date1 is 1100128 but in my example I have given as 1110128( so 11month gap oly)]]></description>
		<content:encoded><![CDATA[<p>What about these dates:</p>
<p>date1 = 1100128 ( which is 2010-01-28 : January)</p>
<p>date2 = 1120101 (which is 2012-01-01 ;January)</p>
<p>Because they cover more than one year, it results in 23 months.</p>
<p>Here Date1 is 1100128 but in my example I have given as 1110128( so 11month gap oly)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 22917</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/month-names-between-2-numeric-cymd-format-dates/#comment-108668</link>
		<dc:creator>22917</dc:creator>
		<pubDate>Thu, 21 Jun 2012 03:34:35 +0000</pubDate>
		<guid isPermaLink="false">#comment-108668</guid>
		<description><![CDATA[Yes I have two date fields which is Numeric 7s 0  (CYMD type- As i shown in my example). I need to write the month Gaps in a separate file which has only one field(here we have 11months inbetween thses two CYMD date formats) like
We have January2011 and January2012, So  i need to write in my file by leaving these two months/year as February2011,march2011,April2011,May2011.....November2011,December2011

How to write thses 11records in my file..]]></description>
		<content:encoded><![CDATA[<p>Yes I have two date fields which is Numeric 7s 0  (CYMD type- As i shown in my example). I need to write the month Gaps in a separate file which has only one field(here we have 11months inbetween thses two CYMD date formats) like<br />
We have January2011 and January2012, So  i need to write in my file by leaving these two months/year as February2011,march2011,April2011,May2011&#8230;..November2011,December2011</p>
<p>How to write thses 11records in my file..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/month-names-between-2-numeric-cymd-format-dates/#comment-108663</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Thu, 21 Jun 2012 00:45:31 +0000</pubDate>
		<guid isPermaLink="false">#comment-108663</guid>
		<description><![CDATA[&lt;i&gt;I need to write records in a file , what are all the  months inbetween these two dates like (February,March,April.................................December).&lt;/i&gt;

Does that mean that you would write 11 records to the file?

What about these dates:

date1  = 1100128    ( which is 2010-01-28    : January)

date2 = 1120101  (which is 2012-01-01   ;January)

Because they cover more than one year, it results in 23 months.

Or these dates:

date1  = 1120101    ( which is 2012-01-01    : January)

date2 = 1120128  (which is 2012-01-28   ;January)

Same year, same month. Do you need to write &quot;January&quot; to the file?

In you original example, your list of months started with &quot;February&quot; even though the first date was in &quot;January&quot; (date1  = 1110128).

So... Are there restrictions on the date values that you start and end with?

Tom]]></description>
		<content:encoded><![CDATA[<p><i>I need to write records in a file , what are all the  months inbetween these two dates like (February,March,April&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;December).</i></p>
<p>Does that mean that you would write 11 records to the file?</p>
<p>What about these dates:</p>
<p>date1  = 1100128    ( which is 2010-01-28    : January)</p>
<p>date2 = 1120101  (which is 2012-01-01   ;January)</p>
<p>Because they cover more than one year, it results in 23 months.</p>
<p>Or these dates:</p>
<p>date1  = 1120101    ( which is 2012-01-01    : January)</p>
<p>date2 = 1120128  (which is 2012-01-28   ;January)</p>
<p>Same year, same month. Do you need to write &#8220;January&#8221; to the file?</p>
<p>In you original example, your list of months started with &#8220;February&#8221; even though the first date was in &#8220;January&#8221; (date1  = 1110128).</p>
<p>So&#8230; Are there restrictions on the date values that you start and end with?</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/month-names-between-2-numeric-cymd-format-dates/#comment-108662</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Thu, 21 Jun 2012 00:45:11 +0000</pubDate>
		<guid isPermaLink="false">#comment-108662</guid>
		<description><![CDATA[Could you show us what you got and we&#039;ll help.]]></description>
		<content:encoded><![CDATA[<p>Could you show us what you got and we&#8217;ll help.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 6/8 queries in 0.025 seconds using memcached
Object Caching 395/396 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-25 06:56:04 -->