DruWelburn
New Member
Hello, I am a veteran I/T person, but a noob when it comes to ABL and Progress. An ancient app that I am supporting is having all sorts of issues this year. Through display statements, I have confirmed that, PRIOR to 1/1/2025, the TODAY function returns the date in "MM/DD/YY" format. Starting on 1/1/25 the TODAY function returns the date in "MM/DD/YYYY" format.
This is how I showed the format difference:
DEF VAR mydate as DATE . (I tried formatting with "99/99/99" to no effect)
DEF VAR mydate2 as DATE . (I tried formatting with "99/99/99" to no effect)
mydate = ADD-INTERVAL(TODAY,-1,'years').
mydate2 = ADD-INTERVAL(TODAY,0,'years').
mydate displays as "01/22/24"
mydate2 displays as "01/22/2025"
Is there any way for me to prevent/control this at a global level? I would like TODAY to return in the pre-2025 format of "MM/DD/YY".
I don't want to go in and change(format) all the places that TODAY is used in the application.
I've tried things such as session:date-format (it only allows dmy, mdy, etc...) and iso-date with no luck.
Thank you in advance for any assistance!
This is how I showed the format difference:
DEF VAR mydate as DATE . (I tried formatting with "99/99/99" to no effect)
DEF VAR mydate2 as DATE . (I tried formatting with "99/99/99" to no effect)
mydate = ADD-INTERVAL(TODAY,-1,'years').
mydate2 = ADD-INTERVAL(TODAY,0,'years').
mydate displays as "01/22/24"
mydate2 displays as "01/22/2025"
Is there any way for me to prevent/control this at a global level? I would like TODAY to return in the pre-2025 format of "MM/DD/YY".
I don't want to go in and change(format) all the places that TODAY is used in the application.
I've tried things such as session:date-format (it only allows dmy, mdy, etc...) and iso-date with no luck.
Thank you in advance for any assistance!
Last edited: