1
我正在开发一个groovy应用程序,并且在显示Date字段时遇到问题。Groovy日期格式问题
如果我使用了下面的符号:
<g:formatDate format="dd.MM.yyyy" date="${fieldValue(bean: incidentTicketSLAInstance, field: "erstellungsDatum")}"/>
我得到的实际日期,而不是什么被保存在数据库中。
当我使用这种表示法时,它工作正常。
<g:formatDate format="dd.MM.yyyy" date="${incidentTicketSLAInstance?.erstellungsDatum}" />
我在这里做错了什么? 这两种符号是否相同? (顺便说一句,在执行个体存在,erstellungsDatum不为null)
由于提前,
路易斯
谢谢您的回答,路易斯 – Luixv