Class DateTimeValidator
Used to validate if the value is a valid date/time
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.PropertyEditors.Validators
Assembly: Umbraco.Core.dll
Syntax
public class DateTimeValidator : IValueValidator
Methods
View SourceValidate(Object, String, Object, PropertyValidationContext)
Validates if the value is a valid date/time
Declaration
public IEnumerable<ValidationResult> Validate(object value, string valueType, object dataTypeConfiguration, PropertyValidationContext validationContext)
Parameters
Type | Name | Description |
---|---|---|
System. |
value | |
System. |
valueType | |
System. |
dataTypeConfiguration | |
Property |
validationContext |
Returns
Type | Description |
---|---|
IEnumerable<System. |