I'm not having much success trying to create a global that will show the date (in YYYY-MM-DD format) six months from the current date. I think I'm making this much harder than it is. Here is the global for showing the current date:
# Displays the current date.
Links::init_date();
GT::Date::date_set_format($CFG->{'date_user_format'});
my $date = GT::Date::date_get();
GT::Date::date_set_format($CFG->{'date_db_format'});
return $date;
}
Any ideas on how to show six months from current date (YYYY-MM-DD)?
Code:
sub { # Displays the current date.
Links::init_date();
GT::Date::date_set_format($CFG->{'date_user_format'});
my $date = GT::Date::date_get();
GT::Date::date_set_format($CFG->{'date_db_format'});
return $date;
}
Any ideas on how to show six months from current date (YYYY-MM-DD)?