import mx.validators.DateValidator;
private var validator:DateValidator = new DateValidator();
private function doValidation():void
{
validator.allowedFormatChars = "/-";
validator.listener=myDate;
validator.validate(myDate.text);
}