I would like to add 14 days to my days of the month based on today's date. I am susing the code below. Any tricks to account for dates falling at the end of the month. Like when I execute this, I get 2/35/2007. Any ideas what approach I should take. Would epoch time be better?
+m->mday, $tm->mon, $tm->year);
my $input = sprintf("%d/%02d/%04d",
my @today = split /\//,$input;
my $due_date = sprintf("%d/%02d/%04d",
my @due_date = split /\//,$due_date;
$due_date = "$due_date/$due_date/$due_date";