The first day of a week will be determined by culture. It's normally Monday, but I understand that some Christians use Sunday. Followers of other superstitions may use other days for all I know.

Deciding what is the first week of a month is not easy. Consider May 2013, for example, which began on a Wednesday. That's the week that began on Monday the 29th of April. Or consider June 2013, which began on a Saturday, that being in the week that began on Mon 27 May. Most people would say that the first week of May began on the 29th of April, but that the first week of June began on Mon 3 Jun.

ISO 8601 is normally the fount of all wisdom, but in this case isn't particularly helpful as it only defines the first week of a *year*, not of a month - the first week of a year begins on the Monday between Dec 29 and Jan 4, which is the same as saying that it is the one that contains fhe first Thursday of the year. You could adopt that rule for months, but should expect people to disagree with you!


In reply to Re: How to find first day of the first week on the month? by DrHyde
in thread How to find first day of the first week on the month? by devbond

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.