in reply to Re: Changing format of a date.
in thread Changing format of a date.

The reason im switching to mmddyy from yyyy-mm-dd format is due to the proprietary database system i use at work, it is quite old and set in its ways, much like everything else here. I can assure you I'd love to change things up, but in my odd position, I'm given all the responsiblity in the world, and zero power or authority. I gotta basically limbo here at work, under BS deadlines, etc. and not being able to change things.

Replies are listed 'Best First'.
3Re: Changing format of a date.
by jeffa (Bishop) on Feb 11, 2004 at 21:40 UTC
    Nobody has mentioned Time::Piece which has a nice interface to strptime and strftime:
    use Time::Piece; print localtime ->strptime('2003-08-01','%Y-%m-%d') ->strftime('%m%d%y') ;

    jeffa

    L-LL-L--L-LL-L--L-LL-L--
    -R--R-RR-R--R-RR-R--R-RR
    B--B--B--B--B--B--B--B--
    H---H---H---H---H---H---
    (the triplet paradiddle with high-hat)