You could of course go out of your way to make it more difficult than it really is and make use of the
Date::Calc module. You can do all sorts of fun conversions and calculations with that. Documentation can be found at
CPAN.
Once bread becomes toast, it can never be bread again.