Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Is there a good way to get the current year in xslt? To keep a copyright date updated for example?
Thank you!
umbraco.library:FormatDateTime(umbraco.library:CurrentDate(), 'yyyy')
should do it, or indeed
Exslt.ExsltDatesAndTimes:year()
Should also do it.
Dan
Yup! That'll do it.
Here are a couple other ways to do it, without needing a macro!
http://blog.percipientstudios.com/2010/1/2/the-never-expiring-copyright-date.aspx
cheers,doug.
Doug, very interesting, thank you!
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Getting current year
Is there a good way to get the current year in xslt? To keep a copyright date updated for example?
Thank you!
umbraco.library:FormatDateTime(umbraco.library:CurrentDate(), 'yyyy')
should do it, or indeed
Should also do it.
Dan
Yup! That'll do it.
Here are a couple other ways to do it, without needing a macro!
http://blog.percipientstudios.com/2010/1/2/the-never-expiring-copyright-date.aspx
cheers,
doug.
Doug, very interesting, thank you!
is working on a reply...