Question
Accenture
Accenture
IN
Accenture
Posted: Feb 6, 2025
Last activity: Feb 7, 2025
Last activity: 7 Feb 2025 4:00 EST
Closed
Solved
Issue with @pxFormatDateOnly function yields incorrect Year
Hi All,
The function returns incorrect year when executed. When the Date string is "20241231" which is yyymmdd format and if I use the function @pxFormatDateOnly with @pxFormatDateOnly("20241231","yyyyMMdd","dd-MMM-YYYY") it returns incorrect date as 31-Dec-2025. See the attachment.
Can somebody help me on this?
Thanks in advance.
Regards,
Sakhib Hussain
***Edited by Moderator Marissa to add Capability tags***
To see attachments, please log in.
@SakhibHussain
Yes there's an issue with the Pega platform code where this happens. We raised a ticket on this and the reply was that the year format we have to use lower case y instead of upper case Y. In your case, try with using "dd-MMM-yyyy".