I have the following code:
string ls_date = "1900-01-50"
date ld_date
ld_date = date(ls_date)
messagebox("Date", string(ld_date, "dd-mm-yyyy"))
When run using PowerBuilder 12.5.2 (my legacy system) the result in the messagebox is "01-01'1900".
When run using Appeon 17R3 (my current system) the same code results in "05-01-1900".
The problem is the legacy system is expecting "01-01-1900" as being an "empty" date but the same code, when complied and run in 17R3 no longer works as expected. It looks like the 17R3 implementation of Date() has changed.
Has anyone else experienced this and can anyone throw light on this difference and is it a known issue likely to be fixed?
Larry Peters
Thanks for the feedback. I believe you are right, the Help does clearly say:
Date. Returns the date in string as a date. If string does not contain a valid date, Date returns null.
So returning 05-01-1900 is a valid but wrong date.
I will log this and keep you all informed.
I will of course move to 19R3 asap but not this week.
Regards
Larry