Hello, I previously asked a question about "Yesterday" but I didn't realize I was asking the wrong question. My script provides dates in a MMDDYYYY fashion. What I am seeking help for is to find the date of one day before the date that my script has provided. If it provided 04/24/2023 I need Perl to tell me the day before it or if the script provided 05/01/2023 (MMDDYYYY) I would need Perl to tell me that the day before was 04/30/2023 in this example. If Perl programming results in DDMMYYYY instead, I am OK with that; I can change it. I do NOT need DST or variables of it, I am not concerned with time zone because this computer will not be moving and the latter two items are not a concern. I only need Perl to determine the date before the date my script provides. I hope I explained myself better as I stumbled through this exercise of explaining what I need. Again, I thank all of you who have helped me in the last days and before that. Thank you again!

In reply to The day before a specific date by jpys

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.