ooo - checkit out http://sugarjs.com/api/Date/isValid