is a date

Mike Kerner MikeKerner at roadrunner.com
Sun Oct 15 20:24:35 EDT 2017


why not have the engine do it for you - use convert to convert the possible
date to whatever format you're expecting.  If it the answer isn't the same,
then you don't have a date.

On Sun, Oct 15, 2017 at 7:05 PM, J. Landman Gay via use-livecode <
use-livecode at lists.runrev.com> wrote:

> Yeah. Unless you require a year or something, that'd work.
> --
> Jacqueline Landman Gay         |     jacque at hyperactivesw.com
> HyperActive Software           |     http://www.hyperactivesw.com
>
>
>
> On October 15, 2017 4:23:20 PM Alex Tweedly via use-livecode <
> use-livecode at lists.runrev.com> wrote:
>
> Or   x is a date and x is not an integer  ?
>>
>> -- Alex.
>>
>>
>> On 15/10/2017 21:37, J. Landman Gay via use-livecode wrote:
>>
>>> You know, after all the dicussion here, I'm not sure any of the
>>> options are better than "x is a date". The one exception may be that
>>> any integer is considered a date. To get around that we could just
>>> check that there are 3 items delimited by slashes before testing for
>>> "is a date".
>>>
>>>
>>
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."



More information about the use-livecode mailing list