機械翻訳について

DateTimeフィールドの時間部分を抽出するにはどうすればよいですか。

Groovyを使用して、日付フィールドの時間部分を抽出できます。

次を使用できます

getAt():

  • ActivityStartDate.getAt(Calendar.HOUR));

  • ActivityStartDate.getAt(Calendar.MINUTE));

  • ActivityStartDate.getAt(Calendar.SECOND));

substring():

  • ActivityEndDate.format("yyyy-MM-dd HH:mm:ss").toString().substring(10,12)

UserTimeZone値には、次のGroovyを使用できます:

  • def値= ActivityEndDate

  • def user_time_zone = oracle.apps.fnd.applcore.common.ApplSessionUtil.getTimeZone();

  • def dateFormat = 'MM/dd/yyyy hh:mm:ss a'

  • def UTZ_ActivityEndDate = value.format(dateFormat, Time zone.getTimeZone(user_time_zone));