Date Validation

I have a dynamic form which contains DateItem and has useTextField set as true. I want to validate the entry in this textbox. I want to make sure that text typed in this textbox should conform to date in(mm/dd/yyyy) format.
I did not find any validator for this. Please tell me how to go about it.

Secondly, I found compareDate method in smartclient reference. How should I call this method to compare two dates.

See if you can use one of builtins described here:

http://www.smartclient.com/docs/6.0/a/b/c/go.html#class..ValidatorTypes

You should be able to do this with a regexp validator, for which there is an example on the website:

http://www.smartclient.com/#regularExpression

As far as using compareDate(), you could do that anywhere you’d like, but presumably you’re trying to put together a custom validator. See this thread on how to do that:

http://forums.smartclient.com/showthread.php?t=439