in reply to Re^2: Error while using POSIX strftime
in thread Error while using POSIX strftime

Item 2 and 4 on the Basic debugging checklist: look at your data.

use strict; use warnings; use POSIX qw(strftime); my @lt = localtime; use Data::Dumper; print Dumper(\@lt); my $datestring = strftime "%B %d %Y", @lt; print("date - $datestring\n");

Please post the output.