I need to modify the format of a date that I am getting. I'm sure there are at least a few mods out there that can do this easily so any suggestions will be greatly appreciated. Here's the details.

I'm getting a "last updated" day and time from an external data source in one of my scripts.

It comes in the following format:
"10/16/2001 3:26PM; ET"

I need to display it in the following format:
"Tue Oct 16 3:26 PM ;ET"

Anyone know of a mod or a good script where I can pass the value of a date in the format of "mm/dd/yy" and it returns the value of "dow mon dd"? (dow=Day of week 3 letter abbreviation, mon=month 3 letter abbreviation, dd=date)

Also, I need to parse the "3:26PM" variable so that I can add a space between the "3:26" and the "PM". Any and all help is appreciated. I know this should be simple, but it's been causing me a lot of trouble.

Thanks,
Wood

In reply to Date format manipulation 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.