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 6263 Aug 17, 2009, 4:55 PM
Thread Re: [SandraR] ExpiryDate to show current date
Andy 6159 Aug 18, 2009, 12:13 AM
Thread Re: [Andy] ExpiryDate to show current date
SandraR 6166 Aug 18, 2009, 1:26 AM
Thread Re: [SandraR] ExpiryDate to show current date
Andy 6201 Aug 18, 2009, 1:27 AM
Thread Re: [Andy] ExpiryDate to show current date
SandraR 6145 Aug 18, 2009, 1:30 AM
Thread Re: [SandraR] ExpiryDate to show current date
Andy 6190 Aug 18, 2009, 1:35 AM
Thread Re: [Andy] ExpiryDate to show current date
SandraR 6131 Aug 18, 2009, 2:38 AM
Thread Re: [SandraR] ExpiryDate to show current date
Andy 6140 Aug 18, 2009, 2:46 AM
Thread Re: [Andy] ExpiryDate to show current date
SandraR 6133 Aug 18, 2009, 2:53 AM
Post Re: [SandraR] ExpiryDate to show current date
brewt 6040 Aug 19, 2009, 4:27 PM