is a date

J. Landman Gay jacque at hyperactivesw.com
Sat Oct 14 15:52:19 EDT 2017


On 10/14/17 2:14 PM, Yves COPPE via use-livecode wrote:
> Try this
> 
> function CheckDate pDateToCheck
> 
> return matchText(pDateToCheck,"([1-9]|[12][0-9]|3[01])/(0[1-9]|1[0-2])/([0-9][0-9][0-9][0-9])")
> 
> end CheckDate

Promising, but fails with dates like "1/1/19".

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list