[xwiki-users] $datetool appears to be a DateTool and not a ComparisonDateTool
29 Sep
2011
29 Sep
'11
6:26 p.m.
In the dev mailing list, I saw years ago that $datetool was changed to point to ComparisonDateTool. This gave it added functionality. Also, the documentation on http://platform.xwiki.org/xwiki/bin/view/DevGuide/Scripting says it is a ComparisonDateTool. My problem is, it doesn't act like a ComparisonDateTool, it acts like DateTool. Works: $datetool.get('dd.MM.yyyy HH:mm') Does not work: $datetool.difference('2005-07-04','2007-02-15') Is there a way to get a ComparisonDateTool object? And is it known that it's simply a DateTool again, or am I wrong?
5447
Age (days ago)
5447
Last active (days ago)
0 comments
1 participants
participants (1)
-
Scott Serr