Originally posted by lijun wang:
how to validate a string like "20060503" is DATE?how to validate this string are all number, not charactor?
Thanks.
Hi,
The regular expression is the way to solve that one.
Or
you can write your own syntax checker thats all.
The Regular Expression to check your case is,
For example assume you need to check year ragne from 1900 to 2999 then
[[1][9][0-9[0-9]|[2][0-9][0-9][0-9]][[0][1-9]|[1][0|1|2|]]
This is only for YYYYMM Now you can try for DD ok.
Thank you.