Try the global below:
sub {
my ($date, $format) = @_;
require GT::Date;
my $unix_time = GT::Date::timelocal(GT::Date::parse_format($date, "%yyyy%-%mm%-%dd% %hh%:%MM%:%ss%"));
return GT::Date::date_get($unix_time, $format);
}
Now you can use:
<%global_name($var_date, "%HH%:%MMM%:%ss%")%>
Hope that helps,
TheStone.
B.
sub {
my ($date, $format) = @_;
require GT::Date;
my $unix_time = GT::Date::timelocal(GT::Date::parse_format($date, "%yyyy%-%mm%-%dd% %hh%:%MM%:%ss%"));
return GT::Date::date_get($unix_time, $format);
}
Now you can use:
<%global_name($var_date, "%HH%:%MMM%:%ss%")%>
Hope that helps,
TheStone.
B.