Because Friday, October 20, 2017 is also a date. So is 2017-10-20. So is 2017/10/20. So is 17/10/20 amd 9/20/17.
Bob S > On Oct 20, 2017, at 08:43 , trevix via use-livecode > <use-livecode@lists.runrev.com> wrote: > > How about this: > > function IsDate pDate, pSysDate > > if pSysDate then > > put char 3 of the short system dateformat into tDelimiter > > else > > put char 3 of the short dateformat into tDelimiter > > end if > > if tDelimiter is in pDate and pDate is a date then return true > > return false > > end IsDate > > trevix > _______________________________________________ > use-livecode mailing list > use-livecode@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode