MvcValidatorToolkit/Validators/ValidateDate.cs
/// <summary>
/// Gets a ValidatorMethodData instance that defines the client-side validator used by the
/// jQuery validation plugin.
/// </summary>
Gets a ValidatorMethodData instance that defines the client-side validator used by the
jQuery validation plugin.
Gets a ValidatorMethodData instance that defines the client - side validator used by the jQuery validation plugin .
public override ValidatorMethodData GetClientMethodData()
		{
			string dateFormatArray = "['" + string.Join("','", GetDateFormatArray()) + "']";
			return new ValidatorMethodData(
				"dateFormat",
				"function(value,element,parameters){return Date.parseExact(value," + dateFormatArray + ");}",
				"$.format('" + ErrorMessageFormat + "')"
			);
		}
public override ValidatorMethodData GetClientMethodData ( ) { string dateFormatArray = " " + string . Join ( " " , GetDateFormatArray ( ) ) + " " ; return new ValidatorMethodData ( " " , " " + dateFormatArray + " " , " " + ErrorMessageFormat + " " ) ; }
Gets a ValidatorMethodData instance that defines the client-side validator used by the
jQuery validation plugin.
Gets a ValidatorMethodData instance that defines the client - side validator used by the jQuery validation plugin .