Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

ExpiryDate to show current date

Quote Reply
ExpiryDate to show current date
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
Subject Author Views Date
Thread ExpiryDate to show current date SandraR 6183 Aug 17, 2009, 4:55 PM
Thread Re: [SandraR] ExpiryDate to show current date
Andy 6081 Aug 18, 2009, 12:13 AM
Thread Re: [Andy] ExpiryDate to show current date
SandraR 6088 Aug 18, 2009, 1:26 AM
Thread Re: [SandraR] ExpiryDate to show current date
Andy 6123 Aug 18, 2009, 1:27 AM
Thread Re: [Andy] ExpiryDate to show current date
SandraR 6067 Aug 18, 2009, 1:30 AM
Thread Re: [SandraR] ExpiryDate to show current date
Andy 6111 Aug 18, 2009, 1:35 AM
Thread Re: [Andy] ExpiryDate to show current date
SandraR 6053 Aug 18, 2009, 2:38 AM
Thread Re: [SandraR] ExpiryDate to show current date
Andy 6062 Aug 18, 2009, 2:46 AM
Thread Re: [Andy] ExpiryDate to show current date
SandraR 6054 Aug 18, 2009, 2:53 AM
Post Re: [SandraR] ExpiryDate to show current date
brewt 5963 Aug 19, 2009, 4:27 PM