フォーマッタを使用した日付値の書式設定
この例は、Groovyを使用して日付値を書式設定する方法を示しています。
def dateVal = currentDate
def locale = adf.context.getLocale();
//To format a date value dateVal to display the day of the week, month name, the day, and the year, you can do:
Date dv1 = dateVal as Date
def fmt1 = new Formatter(locale)
def ret1 = (dv1 != null) ? fmt1.format('%tA, %tB %te, %tY',dv1,dv1,dv1,dv1) : null