See also: fsDate

Function used to determines whether or not the value in the field is a properly formatted date. If the field does not contain a properly formatted date, then an alert is displayed and focus is returned to the field.

Syntax

JSV_fvDate(expD [, emptyOK])

Prototype

n/a

Returns

The fvDate does not return a value.

Parameters

The fvDate function uses the following arguments.

Argument Description
expD The date object.
emptyOK Optional. Boolean value that indicates whether the field is mandatory (i.e., not empty). Default value is false.

Remarks

n/a

Dependencies

JSV_fsDate

Example

The following lines of code

<FORM NAME="DateForm">
<B>Date:</B>
<INPUT TYPE="Text" NAME="MyDate" SIZE="10" MAXLENGTH="10"
       onBlur="JSV_fvDate(this,true);">
<INPUT TYPE="Button" NAME="DateCheck" VALUE="Check">
</FORM>

produce

Enter a date and click the Check button.

Date: