Jasper reports 如何在iReport中比较日期?

Jasper reports 如何在iReport中比较日期?,jasper-reports,Jasper Reports,如何在iReport中比较日期?我想使用“打印时表达式…” 类似于:$F{date\u from\u table}尝试使用date.before()或date.after()方法。 如下 ($F{date_from_table}.before($F{another_date_from_table}) || $F{date_from_table}.equals($F{another_date_from_table})) ? true : false 尝试使用Date.before()或Date.

如何在iReport中比较日期?我想使用“打印时表达式…”

类似于:
$F{date\u from\u table}尝试使用date.before()或date.after()方法。
如下

($F{date_from_table}.before($F{another_date_from_table}) || $F{date_from_table}.equals($F{another_date_from_table})) ? true : false
尝试使用Date.before()或Date.after()方法。
如下

($F{date_from_table}.before($F{another_date_from_table}) || $F{date_from_table}.equals($F{another_date_from_table})) ? true : false