<h1>
    InputDate Validation
</h1>

<p>
    The InputDate control prevents users from selecting values
    outside the range determined by the <b>min</b> and <b>max</b>
    properties.
</p>
<p>
    In many cases, however, not all dates in the range are valid.
    To handle these situations, the control has an <b>itemValidator</b>
    property. This property represents a function that takes a date
    as a parameter and returns true if the date is valid for selection,
    or false otherwise.
</p>
<p>
    The InputDate below demonstrates this. It prevents users from
    selecting dates on weekends and holidays:
</p>
@Html.C1().InputDate().Id("theInputDate")
<div>
    The current date is <b><span id="theInputDateOutput"></span></b>.
</div>