Re: [qooxdoo-devel] Validation of a DateField

2015-05-27 Thread slah
Hello, var dateValidator = function(value) { var isValidDate = function(value){ //if check if value is a valide date return true; else return false; } return (value == null || isValidDate (value)); } chrisch wrote > I'm trying to validate a DateField with a custom validat

[qooxdoo-devel] Validation of a DateField

2015-05-26 Thread chrisch
I'm trying to validate a DateField with a custom validation function that checks if the value of the field is parsed correctly into a Date Object and is not null. Here is my validation function: var dateValidator = function(value) { return (value != null); } That works fine so far. The problem i