It's been a lo-o-o-ng time, but ISTR that I had an internal function that tried to convert it to Basedate and used Signal On Syntax catch it, then return a boolean.  But then, I can rarely remember where I put my car keys these days ...

-Chip-

On 4/24/2025 10:45 AM, P.O. Jonsson wrote:
I have records coming in with potentially illegal dates, like ccyymmdd = "19660230"

How does one go about checking if an entity is a valid date (30th of February is a real case coming in), my further processing relies on this so the program breaks for illegal dates.

I thought there would be a method date~isvaliddate() or something to use but I cannot find anything like that. I would prefer not to parse and check days months years etc. entering the number above in date() invariably breaks the processing.

Any ideas anyone?

Hälsningar/Regards/Grüsse,
P.O. Jonsson
oor...@jonases.se






_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users

_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users

Reply via email to