Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [nir] current data and time

Quote Reply
Re: [nir] current data and time In reply to
Try this global (totally untested);

get_current_date_stamp
Code:
sub {
GT::Date::set_date_format("%dddd% %dd% %mmmm%, %yyyy%, %HH%:%MM%");
my $date = GT::Date::date_get();
GT::Date::set_date_format("%yyyy%-%mm%-%dd%"); # set back to yyyy-mm-dd format, otherwise can cause other problems
return $date;
}


..then just call with:

<%get_current_date_stamp%>

Hope that helps.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Subject Author Views Date
Thread current data and time nir 4574 Aug 7, 2011, 4:39 AM
Thread Re: [nir] current data and time
Andy 4418 Aug 7, 2011, 6:32 AM
Thread Re: [Andy] current data and time
nir 4408 Aug 8, 2011, 2:13 AM
Thread Re: [nir] current data and time
Andy 4368 Aug 8, 2011, 2:40 AM
Thread Re: [Andy] current data and time
nir 4372 Aug 8, 2011, 2:48 AM
Thread Re: [nir] current data and time
Andy 4377 Aug 8, 2011, 2:53 AM
Thread Re: [Andy] current data and time
nir 4362 Aug 8, 2011, 2:59 AM
Thread Re: [nir] current data and time
Andy 4369 Aug 8, 2011, 3:10 AM
Thread Re: [Andy] current data and time
nir 4365 Aug 8, 2011, 3:21 AM
Thread Re: [nir] current data and time
Andy 4368 Aug 8, 2011, 3:22 AM
Post Re: [Andy] current data and time
Matthias70 4333 Aug 8, 2011, 10:34 AM