DatePickerValidationRole class properties

AllowFuture property

Gets or sets a flag indicating whether dates in the future (i.e. dates after DateTime.Today) are allowed.

Syntax

public bool AllowFuture { get; set; }

Property Value

Type:                    System.Boolean

Default value:   false

 

AllowNull property

Gets or sets a flag indicating whether the user has to enter a date value.

Syntax

public bool AllowNull { get; set; }

Property Value

Type:                    System.Boolean

Default value:   false

 

AllowPast property

Gets or sets a flag indicating whether dates in the past (i.e. dates before DateTime.Today) are allowed.

Syntax

public bool AllowPast { get; set; }

Property Value

Type:                    System.Boolean

Default value:   false

 

ValidFrom property

Gets or sets a date from which the entered date id valid.

Syntax

public DateTime? ValidFrom { get; set; }

Property Value

Type:                    System.Nullable<System.DateTime>

Default value:   null

 

ValidTo property

Gets or sets a date up to which the entered date is valid.

Syntax

public DateTime? ValidTo { get; set; }

Property Value

Type:                    System.Nullable<System.DateTime>

Default value:   null