TODAY function returns different format starting 1/1/2025???

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!
 
Last edited:
What are the session startup parameters?
these are the startup parms: P:\OpenEdge\bin\_progres.exe -db P:\Databases\YML\Data\ymlb -H yml-server -S 2533 -p pt\menu -k kwdlc -yy 1925 -Wa -wpp

omg - I see that it must be the 1925 , which must be the "century cutoff". thank you so much as I am sure that this is the issue. I'll change it to 1980 since the client doesn't do virtually anything older than a year or two.

thank you SO much!
 
these are the startup parms: P:\OpenEdge\bin\_progres.exe -db P:\Databases\YML\Data\ymlb -H yml-server -S 2533 -p pt\menu -k kwdlc -yy 1925 -Wa -wpp

omg - I see that it must be the 1925 , which must be the "century cutoff". thank you so much as I am sure that this is the issue. I'll change it to 1980 since the client doesn't do virtually anything older than a year or two.

thank you SO much!
Glad you spotted it! Yeah -yy was going to be my first guess too. :D
 
Back
Top