is a date

Bob Sneidar bobsneidar at iotecdigital.com
Fri Oct 20 14:46:31 EDT 2017


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 at 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 at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list