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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.