in reply to Using a range of dates in yymmdd format

If the module you're using to do your date arithmetic doesn't allow you to produce a formatted date, you can use the following statement:
my $date_string = sprintf('%02d%02d%02d', $year-1900, $month, $day);

Replies are listed 'Best First'.
Re^2: Using a range of dates in yymmdd format
by hawtin (Prior) on Aug 14, 2008 at 09:56 UTC

    Of course you meant:

    my $date_string = sprintf('%02d%02d%02d', $year%100, $month, $day);

    Which just illustrates why this is such a bad date format to use