Featured On ...

asp.net

totalasp.co.uk

fuzzysoftware.com

devdex.com

123aspx.com

dotnetfreaks.com

411asp.net

and more ...

ValidatorEntryDateRange

Full path

MadWidgets.Validation.ValidatorEntryDateRange

Declaration

public class ValidatorEntryDateRange : ValidatorEntryDate

Hierarchy

Click on the selected class to view any properties or methods that may be accessible through an instance of this class through inheritance.

ValidatorEntryDateRange

Overview

The ValidatorEntryDateRange class is used to validate an object whose value represents a date under the Gregorian calendar within a certain date range. The format of the date can be forced to either be an unambiguous date format or either an unambiguous date and one of the ambiguous formats supported by various countries around the world.

Accepted date formats are detailed in the documentation for the ValidatorEntryDate class.

Constructors


Constructors

ValidatorEntryDateRange

public ValidatorEntryDateRange(object o, string sMessage, string sHighlightElement, bool bRequired, ValidatorEntryDateRange.Format f, DateTime dtMinimum, DateTime dtMaximum)

Creates a ValidatorEntryDateRange validating the object o, with a message, a client-side highlight element signature, a boolean indicating whether the object must have a non-blank value, a format value, a minimum datetime value and a maximum datetime value.

The date value of the object being validated must be valid under the following rule:

dtMinimum <= value <= dtMaximum

If dtMinimum is equal to DateTime.MinValue, date value of the object being validated must be less than or equal to dtMaximum.

If dtMaximum is equal to DateTime.MinValue, date value of the object being validated must be greater than or equal to dtMinimum.

© 2002 - 2008 Copyright, Disclaimer and Privacy Statement