You could have a look at Date::Calc which allows for a lot of date related transformations.
Hope this helps, -gjb-
In reply to Re: Date Calculation by gjb in thread Date Calculation by Segfault