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 7181 Aug 7, 2011, 4:39 AM
Thread Re: [nir] current data and time
Andy 6939 Aug 7, 2011, 6:32 AM
Thread Re: [Andy] current data and time
nir 6932 Aug 8, 2011, 2:13 AM
Thread Re: [nir] current data and time
Andy 6890 Aug 8, 2011, 2:40 AM
Thread Re: [Andy] current data and time
nir 6895 Aug 8, 2011, 2:48 AM
Thread Re: [nir] current data and time
Andy 6899 Aug 8, 2011, 2:53 AM
Thread Re: [Andy] current data and time
nir 6885 Aug 8, 2011, 2:59 AM
Thread Re: [nir] current data and time
Andy 6886 Aug 8, 2011, 3:10 AM
Thread Re: [Andy] current data and time
nir 6887 Aug 8, 2011, 3:21 AM
Thread Re: [nir] current data and time
Andy 6899 Aug 8, 2011, 3:22 AM
Post Re: [Andy] current data and time
Matthias70 6858 Aug 8, 2011, 10:34 AM