Dear Monks,

I come here for your wisdom, as I stumble upon this problem I have that I've been trying to accomplish eversince this mourning.

Can any of you please guide me on where to learn to find out the day range of the current week.

So for the month of June 2005, today is 6/23/2005. I want my Perl script to display this current week events. The start of the week was the Monday that just past which is 6/20 and the end of the week will be Sunday, which is 6/26.

This is easy of course to figure in your head, but I have no clue on where to start to tell Perl this. So basically what I'm searching for is a calculation or perhaps some module that does the calculating to find out the start of the week and the end of the week. I have this "annoucement script" and want to display the current weeks announcements.

Thanks!

In reply to Findout the day range of the current week by Anonymous Monk

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.