I would like to use the ExpiryDate to show current date and time left to a link, unfortunately it displays in Unix. I found some old code in the forum and changed it a bit but am getting odd results can someone help with this.
ExpiryDate: 2009/8/20 00:00:00
Results: 1975-06-04
Code:[/code]sub {
my $ExpiryDate = shift;
return ($ExpiryDate)
? GT::Date::date_get($ExpiryDate, $CFG->{currentdatetime}) : '';
}[/code]
Thanks in advance for any help
Sandra Roussel
Chonsa Group Design - Fresh Start Housing
ExpiryDate: 2009/8/20 00:00:00
Results: 1975-06-04
Code:[/code]sub {
my $ExpiryDate = shift;
return ($ExpiryDate)
? GT::Date::date_get($ExpiryDate, $CFG->{currentdatetime}) : '';
}[/code]
Thanks in advance for any help
Sandra Roussel
Chonsa Group Design - Fresh Start Housing