There is not currently a way to automatically formatted dates.
It is possible to compare dates, but it is messy:
Code:
[if="[var]CURRENTYEAR[/var] == 2017"]
[if="[var]CURRENTMONTH[/var] == 12"]
[if="[var]CURRENTDAY[/var] > 25"]
[comment] code for active time this year[/comment]
[else /]
[comment] code for earlier this year (12/1 - 12/25)[/comment]
[/if]
[else /]
[comment] code for earlier this year (1/1 - 11/30)[/comment]
[/if]
[else /]
[if="[var]CURRENTYEAR[/var] > 2017"]
[if="[var]CURRENTYEAR[/var] < 2201"]
[comment] code for future years[/comment]
[else /]
[comment] code for expired years[/comment]
[/if]
[else /]
[comment] code for previous years (0 - 2016)[/comment]
[/if][/if]
As you can see, you would wind up with duplicate code because of spanning partial years (you could work around it by using templates). If we were to add a [var]set/get[/var] for custom variables (i.e. an implementation of "local" templates) it would improve this, as the templates may have no purpose outside of this context.
Bookmarks