LsIsDate not checking for validity correctly
I am sure this problem has come up before but I couldn't find any discussions on this forum relevant to it. Basically I am using a text field to enter dates and validating it using LsIsDate. The problem is that dates that should not be valid are passing as valid and screwing up the forms execution.
For instance:
I am using
<cfset NewLocale=SetLocale("English (Australian)")>
<cfif NOT LSIsDate(attributes.strStartDate)>
Some error code here
<cfelse>
<cfset attributes.StartDate = lsParseDateTime(attributes.strStartDate)>
</cfif>
The problem is that dates with huge year values ie. 3/4/20121 are considered valid even though LsIsDate is supposed to only accept year values up to 9999.
Any work arounds for this problem would be hugely appreciated.
Cheers
Aden
