in reply to Date module laziness

Date::Calc will do it. Look towards the bottom of the function list for the american vs. european parsing functions for what you need to parse your date.

Though, nearly every single database will allow you to specify how you want it to parse the date. For example, in Oracle, you would do TO_DATE( ?, 'DD/MM/YY' ) and in MySQL, you would do STR_TO_DATE( ?, '%d/%m/%y ). So, you don't have to parse it in Perl if you don't want to.

Being right, does not endow the right to be rude; politeness costs nothing.
Being unknowing, is not the same as being stupid.
Expressing a contrary opinion, whether to the individual or the group, is more often a sign of deeper thought than of cantankerous belligerence.
Do not mistake your goals as the only goals; your opinion as the only opinion; your confidence as correctness. Saying you know better is not the same as explaining you know better.

Replies are listed 'Best First'.
Re^2: Date module laziness
by Cody Pendant (Prior) on Dec 05, 2004 at 06:53 UTC
    Good point! Not only that, but in the spirit of laziness, I can also do the date addtion using MySQL as well with something like SELECT DATE_ADD(?, INTERVAL 21 DAY); so it looks like I don't need a date module at all...


    ($_='kkvvttuubbooppuuiiffssqqffssmmiibbddllffss')
    =~y~b-v~a-z~s; print