フォーマッタを使用した日時値の書式設定
この例は、Groovyを使用して日時値を書式設定する方法を示しています。
def datetimeVal = currentDate
def locale = adf.context.getLocale();
//To format a datetime value datetimeVal to display only the hours and minutes in 24-hour format, you can do:
Date dv = datetimeVal as Date
def fmt = new Formatter(locale)
def ret = (dv != null) ? fmt.format('%tH:%tM', dv, dv) : null