I had a good solution to compare two dates in a confluence user macro.
I checked both dates with the millisecond timestamp.
#set( $modDateTimeMillis = $childVersion.getLastModificationDate().getTime() ) #if( $modDateTimeMillis > $startDate.timeInMillis) #set( $dummy = $allVersions.add($childVersion) ) #end
But since the update to confluence 7.4 the “getTime()” function gives no return value.
How can I get the milliseconds from a date?
or even better:
Does anybody know, how I can compare two dates in a confluence user macro? The DateTool of Velocity dosen’t seems to work in confluence.