Assuming you know what format the date is in, you can use the .DateParser
class with signal on syntax to see if it's a valid date.

Rick

On Thu, Apr 24, 2025 at 10:46 AM P.O. Jonsson <oor...@jonases.se> 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