How to just show the Year

Steven Scott <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
I am trying to create a PHP template in NetBeans 6.9.1, and I want to
include a Copyright: 2010 (or the current year).  I have the ${date} but I
can not get just the year.  This is what I have:

Copyright ${date?string("yyyy")}

I have also tried the

<#setting short="yyyy">
Copyright ${date?string.short}

without any luck as well.  Any help would be appreciated.

------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d

_______________________________________________
FreeMarker-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freemarker-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.