Date Format In Groovy Gives Wrong Result
(Doc ID 3056331.1)
Last updated on NOVEMBER 06, 2024
Applies to:
Oracle Fusion CX Sales Cloud Service - Version 11.13.24.07.0 and laterInformation in this document applies to any platform.
Symptoms
On : 11.13.24.07.0 version, Opportunities
ACTUAL BEHAVIOR
---------------
Date format in Groovy gives the wrong result
Noticed that when we are trying to format a date that is close to the end of the month the result is a formatted date but starting next month.
For example for the date 31.12.2024.format('YYYY-MM') the result will be 2025-01. The same happens if the date was 29 or 30.12.2024 which is really strange.
The actual groovy code is def searchDate = nvl(EffectiveDate, new Date()).format('YYYY-MM').
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Cause |
Solution |